summaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-09-16 12:38:26 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-09-16 12:38:26 +0000
commit063adb71c2a42c2733e0665caefabf1dd3e74844 (patch)
treeb7454d6f1b0e425a29ec6a8459386e8e69e1e670 /src/transport/plugin_transport_http.h
parent29fa14da9469c471234a09250cde179ec95066d3 (diff)
Diffstat (limited to 'src/transport/plugin_transport_http.h')
-rw-r--r--src/transport/plugin_transport_http.h10
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 @@
#define LIBGNUNET_PLUGIN_TRANSPORT_DONE libgnunet_plugin_transport_http_done
#endif
+#define INBOUND GNUNET_YES
+#define OUTBOUND GNUNET_NO
+
#define HTTP_NOT_VALIDATED_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 3)
@@ -227,13 +230,16 @@ struct Session
void *client_put;
void *client_get;
- void *server_put;
- void *server_get;
+ void *server_recv;
+ void *server_send;
uint32_t tag;
};
+void
+delete_session (struct Session *s);
+
struct Session *
create_session (struct Plugin *plugin, const struct GNUNET_PeerIdentity *target,
const void *addr, size_t addrlen,