diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-09-16 12:38:26 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-09-16 12:38:26 +0000 |
commit | 063adb71c2a42c2733e0665caefabf1dd3e74844 (patch) | |
tree | b7454d6f1b0e425a29ec6a8459386e8e69e1e670 /src/transport/plugin_transport_http.h | |
parent | 29fa14da9469c471234a09250cde179ec95066d3 (diff) | |
download | gnunet-063adb71c2a42c2733e0665caefabf1dd3e74844.tar.gz gnunet-063adb71c2a42c2733e0665caefabf1dd3e74844.zip |
Diffstat (limited to 'src/transport/plugin_transport_http.h')
-rw-r--r-- | src/transport/plugin_transport_http.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_http.h b/src/transport/plugin_transport_http.h index 8ea1b03cf..11b369d40 100644 --- a/src/transport/plugin_transport_http.h +++ b/src/transport/plugin_transport_http.h | |||
@@ -54,6 +54,9 @@ | |||
54 | #define LIBGNUNET_PLUGIN_TRANSPORT_DONE libgnunet_plugin_transport_http_done | 54 | #define LIBGNUNET_PLUGIN_TRANSPORT_DONE libgnunet_plugin_transport_http_done |
55 | #endif | 55 | #endif |
56 | 56 | ||
57 | #define INBOUND GNUNET_YES | ||
58 | #define OUTBOUND GNUNET_NO | ||
59 | |||
57 | 60 | ||
58 | #define HTTP_NOT_VALIDATED_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 3) | 61 | #define HTTP_NOT_VALIDATED_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 3) |
59 | 62 | ||
@@ -227,13 +230,16 @@ struct Session | |||
227 | void *client_put; | 230 | void *client_put; |
228 | void *client_get; | 231 | void *client_get; |
229 | 232 | ||
230 | void *server_put; | 233 | void *server_recv; |
231 | void *server_get; | 234 | void *server_send; |
232 | 235 | ||
233 | uint32_t tag; | 236 | uint32_t tag; |
234 | 237 | ||
235 | }; | 238 | }; |
236 | 239 | ||
240 | void | ||
241 | delete_session (struct Session *s); | ||
242 | |||
237 | struct Session * | 243 | struct Session * |
238 | create_session (struct Plugin *plugin, const struct GNUNET_PeerIdentity *target, | 244 | create_session (struct Plugin *plugin, const struct GNUNET_PeerIdentity *target, |
239 | const void *addr, size_t addrlen, | 245 | const void *addr, size_t addrlen, |