summaryrefslogtreecommitdiff
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)
- 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
};
GNUNET_NETWORK_STRUCT_END
+
+struct ServerConnection
+{
+ /* _RECV or _SEND */
+ int direction;
+
+ /* Should this connection get disconnected? GNUNET_YES/NO */
+ int disconnect;
+
+ /* The session this server connection belongs to */
+ struct Session *session;
+
+ /* The MHD connection */
+ struct MHD_Connection *mhd_conn;
+};
+
+
+
/**
* Session handle for connections.
*/
@@ -417,12 +435,12 @@ struct Session
/**
* Client send handle
*/
- void *server_recv;
+ struct ServerConnection *server_recv;
/**
* Client send handle
*/
- void *server_send;
+ struct ServerConnection *server_send;
};
/**