aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-05-29 09:05:12 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-05-29 09:05:12 +0000
commitcec8e7eee09c84d32e7e8c6ae18d03a43eaa3e13 (patch)
tree7265c035f31625a2d0f631f43bd51128428213a9 /src/transport/plugin_transport_http.h
parent8c85ee6619a2580c239fe7807368bf8a6a8286fa (diff)
downloadgnunet-cec8e7eee09c84d32e7e8c6ae18d03a43eaa3e13.tar.gz
gnunet-cec8e7eee09c84d32e7e8c6ae18d03a43eaa3e13.zip
- refactorind reverting last fix
Diffstat (limited to 'src/transport/plugin_transport_http.h')
-rw-r--r--src/transport/plugin_transport_http.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_http.h b/src/transport/plugin_transport_http.h
index 8ec47fe4c..c3c9367ad 100644
--- a/src/transport/plugin_transport_http.h
+++ b/src/transport/plugin_transport_http.h
@@ -305,6 +305,24 @@ struct IPv6HttpAddress
305}; 305};
306GNUNET_NETWORK_STRUCT_END 306GNUNET_NETWORK_STRUCT_END
307 307
308
309struct ServerConnection
310{
311 /* _RECV or _SEND */
312 int direction;
313
314 /* Should this connection get disconnected? GNUNET_YES/NO */
315 int disconnect;
316
317 /* The session this server connection belongs to */
318 struct Session *session;
319
320 /* The MHD connection */
321 struct MHD_Connection *mhd_conn;
322};
323
324
325
308/** 326/**
309 * Session handle for connections. 327 * Session handle for connections.
310 */ 328 */
@@ -417,12 +435,12 @@ struct Session
417 /** 435 /**
418 * Client send handle 436 * Client send handle
419 */ 437 */
420 void *server_recv; 438 struct ServerConnection *server_recv;
421 439
422 /** 440 /**
423 * Client send handle 441 * Client send handle
424 */ 442 */
425 void *server_send; 443 struct ServerConnection *server_send;
426}; 444};
427 445
428/** 446/**