Check that you are not present in trail twice
[oweals/gnunet.git] / src / transport / plugin_transport_http.h
index 1469fd8a939c21bb9d36cafff0ad4896ff1281ae..ae0c784eef230b7311bf1fd87ee564f12a15bbe3 100644 (file)
@@ -23,6 +23,8 @@
  * @brief http transport service plugin
  * @author Matthias Wachs
  */
+#ifndef PLUGIN_TRANSPORT_HTTP_H
+#define PLUGIN_TRANSPORT_HTTP_H
 
 #include "platform.h"
 #include "gnunet_common.h"
@@ -96,22 +98,13 @@ struct Plugin
   /**
    * IPv4 addresses DLL head
    */
-  struct IPv4HttpAddressWrapper *ipv4_addr_head;
+  struct HttpAddressWrapper *addr_head;
 
   /**
    * IPv4 addresses DLL tail
    */
-  struct IPv4HttpAddressWrapper *ipv4_addr_tail;
+  struct HttpAddressWrapper *addr_tail;
 
-  /**
-   * IPv6 addresses DLL head
-   */
-  struct IPv6HttpAddressWrapper *ipv6_addr_head;
-
-  /**
-   * IPv6 addresses DLL tail
-   */
-  struct IPv6HttpAddressWrapper *ipv6_addr_tail;
 
   /**
    * Plugin configuration
@@ -356,7 +349,7 @@ struct IPv6HttpAddress
 GNUNET_NETWORK_STRUCT_END
 
 
-struct ServerConnection
+struct ServerRequest
 {
   /* _RECV or _SEND */
   int direction;
@@ -484,12 +477,12 @@ struct Session
   /**
    * Client send handle
    */
-  struct ServerConnection *server_recv;
+  struct ServerRequest *server_recv;
 
   /**
    * Client send handle
    */
-  struct ServerConnection *server_send;
+  struct ServerRequest *server_send;
 };
 
 /**
@@ -588,4 +581,6 @@ void
 notify_session_end (void *cls, const struct GNUNET_PeerIdentity *peer,
                     struct Session *s);
 
+/*#ifndef PLUGIN_TRANSPORT_HTTP_H*/
+#endif
 /* end of plugin_transport_http.h */