gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r9727 - gnunet/src/include


From: gnunet
Subject: [GNUnet-SVN] r9727 - gnunet/src/include
Date: Thu, 10 Dec 2009 21:57:19 +0100

Author: jilu
Date: 2009-12-10 21:57:19 +0100 (Thu, 10 Dec 2009)
New Revision: 9727

Modified:
   gnunet/src/include/gnunet_transport_service.h
Log:


Modified: gnunet/src/include/gnunet_transport_service.h
===================================================================
--- gnunet/src/include/gnunet_transport_service.h       2009-12-10 20:56:31 UTC 
(rev 9726)
+++ gnunet/src/include/gnunet_transport_service.h       2009-12-10 20:57:19 UTC 
(rev 9727)
@@ -97,6 +97,10 @@
                                         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 @@
                                            *handle,
                                            const struct GNUNET_PeerIdentity
                                            *target, size_t size,
-                                          unsigned int priority,
+                                                              unsigned int 
priority,
                                            struct GNUNET_TIME_Relative
                                            timeout,
                                            
GNUNET_CONNECTION_TransmitReadyNotify
@@ -230,7 +234,23 @@
 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 */
 {
 #endif
@@ -241,3 +261,5 @@
 /* ifndef GNUNET_TRANSPORT_SERVICE_H */
 #endif
 /* end of gnunet_transport_service.h */
+
+





reply via email to

[Prev in Thread] Current Thread [Next in Thread]