(no commit message)
authorJi Lu <jilu@140774ce-b5e7-0310-ab8b-a85725594a96>
Thu, 10 Dec 2009 20:57:19 +0000 (20:57 +0000)
committerJi Lu <jilu@140774ce-b5e7-0310-ab8b-a85725594a96>
Thu, 10 Dec 2009 20:57:19 +0000 (20:57 +0000)
src/include/gnunet_transport_service.h

index 8bf295567f53f6d862072a33a87924800ad0340f..70f50061043fb8dbbfc3116d1eea05dc37206c1f 100644 (file)
@@ -97,6 +97,10 @@ typedef void
                                         peer);
 
 
+typedef void
+(*GNUNET_TRANSPORT_AddressLookUpCallback) (void *cls,
+                                              const char *address);
+
 /**
  * Connect to the transport service.  Note that the connection may
  * complete (or fail) asynchronously.
@@ -183,7 +187,7 @@ struct GNUNET_TRANSPORT_TransmitHandle
                                            *handle,
                                            const struct GNUNET_PeerIdentity
                                            *target, size_t size,
-                                          unsigned int priority,
+                                                              unsigned int priority,
                                            struct GNUNET_TIME_Relative
                                            timeout,
                                            GNUNET_CONNECTION_TransmitReadyNotify
@@ -230,6 +234,22 @@ void
 GNUNET_TRANSPORT_offer_hello (struct GNUNET_TRANSPORT_Handle *handle,
                               const struct GNUNET_MessageHeader *hello);
 
+/**
+ *  Obtain a AddressLookupMessage from a client and return to client all the host addresses of other peers.
+ *
+ *  @param handle connection to transport service
+ *  @param addLUmsg the address-lookup message
+ */
+void
+GNUNET_TRANSPORT_address_lookup (struct GNUNET_TRANSPORT_Handle *handle,
+                                 const char * address,
+                                 size_t addressLen,
+                                 const char * nameTrans,
+                                        struct GNUNET_TIME_Relative timeout,
+                                        GNUNET_TRANSPORT_AddressLookUpCallback aluc,
+                                        void *aluc_cls);
+
+
 
 #if 0                           /* keep Emacsens' auto-indent happy */
 {
@@ -241,3 +261,5 @@ GNUNET_TRANSPORT_offer_hello (struct GNUNET_TRANSPORT_Handle *handle,
 /* ifndef GNUNET_TRANSPORT_SERVICE_H */
 #endif
 /* end of gnunet_transport_service.h */
+
+