fixed copy and paste error
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 29 Sep 2010 09:11:59 +0000 (09:11 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 29 Sep 2010 09:11:59 +0000 (09:11 +0000)
src/transport/plugin_transport.h

index 57e446193b51c21369fb80560604bae17fe0db30..0fa5e98eab566481dcb5c699b813f90c861aa0fb 100644 (file)
@@ -138,28 +138,6 @@ typedef void (*GNUNET_TRANSPORT_AddressNotification) (void *cls,
                                                       GNUNET_TIME_Relative
                                                       expires);
 
-
-/**
- * Function that will be called whenever the plugin receives data over
- * the network and wants to determine how long it should wait until
- * the next time it reads from the given peer.  Note that some plugins
- * (such as UDP) may not be able to wait (for a particular peer), so
- * the waiting part is optional.  Plugins that can wait should call
- * this function, sleep the given amount of time, and call it again
- * (with zero bytes read) UNTIL it returns zero and only then read.
- * 
- * @param cls closure
- * @param peer which peer did we read data from 
- * @param amount_recved number of bytes read (can be zero)
- * @return how long to wait until reading more from this peer
- *         (to enforce inbound quotas)
- */
-typedef struct GNUNET_TIME_Relative (*GNUNET_TRANSPORT_TrafficReport) (void *cls,
-                                                                      const struct 
-                                                                      GNUNET_PeerIdentity *peer,
-                                                                      size_t amount_recved);
-
-
 /**
  * Function called whenever the plugin has to notify ATS about costs for using this transport
  *
@@ -169,6 +147,8 @@ typedef struct GNUNET_TIME_Relative (*GNUNET_TRANSPORT_TrafficReport) (void *cls
  *
  * @param cls closure
  * @param peer peer
+ * @param addr peer address
+ * @param addrlen address length
  * @param cost pointer to the first element of struct GNUNET_ATS_Cost_Information[]
  */
 typedef void (*GNUNET_TRANSPORT_CostReport) (void *cls,