check
[oweals/gnunet.git] / src / include / gnunet_transport_service.h
index 1c70e312d886aec3b45fcc8483aa5cc7a1d468d5..0fbbf12f0f505fa088d346470ba6d0cc4680f8b6 100644 (file)
@@ -335,13 +335,14 @@ enum GNUNET_TRANSPORT_ATS_Property
    */
   GNUNET_TRANSPORT_ATS_QUALITY_NET_THROUGHPUT = 1033,
   
 /**
-   * Distance on network layer
-   *
-   * Unit: []
-   */
+ /**
+  * Distance on network layer
+  *
+  * Unit: []
+  */
   GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE = 1034,
 
+
   /* Availability related values */
   /* =========================== */
   
@@ -390,6 +391,7 @@ struct GNUNET_TRANSPORT_ATS_Information
 };
 
 
+
 /**
  * Function called by the transport for each received message.
  *
@@ -405,7 +407,7 @@ typedef void (*GNUNET_TRANSPORT_ReceiveCallback) (void *cls,
                                                   const struct
                                                   GNUNET_MessageHeader *
                                                   message,
-                                                 const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                                                  const struct GNUNET_TRANSPORT_ATS_Information *ats,
                                                   uint32_t ats_count);
 
 
@@ -600,15 +602,19 @@ GNUNET_TRANSPORT_get_hello_cancel (struct GNUNET_TRANSPORT_Handle *handle,
 /**
  * Offer the transport service the HELLO of another peer.  Note that
  * the transport service may just ignore this message if the HELLO is
- * malformed or useless due to our local configuration.  If the HELLO
- * is working, we should add it to PEERINFO.
+ * malformed or useless due to our local configuration.
  *
  * @param handle connection to transport service
  * @param hello the hello message
+ * @param cont continuation to call when HELLO has been sent
+ * @param cls closure for continuation
+ *
  */
 void
 GNUNET_TRANSPORT_offer_hello (struct GNUNET_TRANSPORT_Handle *handle,
-                              const struct GNUNET_MessageHeader *hello);
+                              const struct GNUNET_MessageHeader *hello,
+                              GNUNET_SCHEDULER_Task cont,
+                              void *cls);
 
 
 /**