summaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-09-15 15:54:05 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-09-15 15:54:05 +0000
commit4878053408a3681dca18b6a264d2b6ec719e79b0 (patch)
treef95c77ced25342bc93227873a0d2bc4a86e6345a /src/transport/plugin_transport_http.h
parent5743ad799f624901abbbf35748d8aeca9edbe66b (diff)
server side connection accepting and merging
Diffstat (limited to 'src/transport/plugin_transport_http.h')
-rw-r--r--src/transport/plugin_transport_http.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_http.h b/src/transport/plugin_transport_http.h
index 24752aff3..8ea1b03cf 100644
--- a/src/transport/plugin_transport_http.h
+++ b/src/transport/plugin_transport_http.h
@@ -115,10 +115,12 @@ struct Plugin
int max_connections;
+
/* Plugin values */
int cur_connections;
+ uint32_t last_tag;
/*
* Server handles
@@ -134,6 +136,12 @@ struct Plugin
char *key;
char *cert;
+ struct Session *server_semi_head;
+
+ struct Session *server_semi_tail;
+
+
+
/*
* Client handles
*/
@@ -219,9 +227,18 @@ struct Session
void *client_put;
void *client_get;
+ void *server_put;
+ void *server_get;
+
+ uint32_t tag;
};
+struct Session *
+create_session (struct Plugin *plugin, const struct GNUNET_PeerIdentity *target,
+ const void *addr, size_t addrlen,
+ GNUNET_TRANSPORT_TransmitContinuation cont, void *cont_cls);
+
const char *
http_plugin_address_to_string (void *cls, const void *addr, size_t addrlen);