fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 14 Jul 2011 20:26:46 +0000 (20:26 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 14 Jul 2011 20:26:46 +0000 (20:26 +0000)
src/include/gnunet_protocols.h
src/include/gnunet_transport_plugin.h

index 7cc8e7239162c56066898b864af52ff309a3571c..36cfe0535c7805ec3be814ea8d1a9ad2327ea145 100644 (file)
@@ -273,35 +273,9 @@ extern "C"
 #define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_MESSAGE 52
 
 /**
- * Fragmented part of a UDP message.
+ * UDP ACK.
  */
-#define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_MESSAGE_PART 53
-
-/**
- * UDP NAT probe message, send from NAT'd peer to
- * other peer to negotiate punched address/port
- */
-#define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_NAT_PROBE 55
-
-/**
- * UDP NAT probe reply, sent from a non-NAT'd peer to
- * a NAT'd one to inform it we got the probe and of the
- * address/port seen
- */
-#define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_NAT_PROBE_REPLY 56
-
-/**
- * UDP NAT probe confirmation, sent from a NAT'd peer to
- * a non-NAT'd one to inform it which port to send to us
- * on
- */
-#define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_NAT_PROBE_CONFIRM 57
-
-/**
- * UDP NAT probe keepalive, once a hole is punched the NAT'd peer
- * needs to keep the hole alive
- */
-#define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_NAT_PROBE_KEEPALIVE 58
+#define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_ACK 53
 
 /**
  * Request to look up addresses of peers.
index 40f134db06b0bd7a843c9c6eaf1c5cdee77e1ed2..7704d2b0c3713286617503ed91e65674b7446917 100644 (file)
@@ -155,6 +155,7 @@ typedef struct GNUNET_TIME_Relative (*GNUNET_TRANSPORT_TrafficReport) (void *cls
                                                                       GNUNET_PeerIdentity *peer,
                                                                       size_t amount_recved);
 
+
 /**
  * Function called whenever the plugin has to notify ATS about costs for using this transport
  *
@@ -174,6 +175,7 @@ typedef void (*GNUNET_TRANSPORT_CostReport) (void *cls,
                                              uint16_t addrlen,
                                             struct GNUNET_TRANSPORT_ATS_Information * cost);
 
+
 /**
  * The transport service will pass a pointer to a struct
  * of this type as the first and only argument to the
@@ -440,9 +442,7 @@ struct GNUNET_TRANSPORT_PluginFunctions
   /**
    * Function that can be used to force the plugin to disconnect from
    * the given peer and cancel all previous transmissions (and their
-   * continuations).  Note that if the transport does not have
-   * sessions / persistent connections (for example, UDP), this
-   * function may very well do nothing.
+   * continuations).  
    */
   GNUNET_TRANSPORT_DisconnectFunction disconnect;