aboutsummaryrefslogtreecommitdiff
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)
downloadgnunet-4878053408a3681dca18b6a264d2b6ec719e79b0.tar.gz
gnunet-4878053408a3681dca18b6a264d2b6ec719e79b0.zip
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
115 int max_connections; 115 int max_connections;
116 116
117 117
118
118 /* Plugin values */ 119 /* Plugin values */
119 120
120 121
121 int cur_connections; 122 int cur_connections;
123 uint32_t last_tag;
122 124
123 /* 125 /*
124 * Server handles 126 * Server handles
@@ -134,6 +136,12 @@ struct Plugin
134 char *key; 136 char *key;
135 char *cert; 137 char *cert;
136 138
139 struct Session *server_semi_head;
140
141 struct Session *server_semi_tail;
142
143
144
137 /* 145 /*
138 * Client handles 146 * Client handles
139 */ 147 */
@@ -219,9 +227,18 @@ struct Session
219 void *client_put; 227 void *client_put;
220 void *client_get; 228 void *client_get;
221 229
230 void *server_put;
231 void *server_get;
232
233 uint32_t tag;
222 234
223}; 235};
224 236
237struct Session *
238create_session (struct Plugin *plugin, const struct GNUNET_PeerIdentity *target,
239 const void *addr, size_t addrlen,
240 GNUNET_TRANSPORT_TransmitContinuation cont, void *cont_cls);
241
225const char * 242const char *
226http_plugin_address_to_string (void *cls, const void *addr, size_t addrlen); 243http_plugin_address_to_string (void *cls, const void *addr, size_t addrlen);
227 244