aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_transport_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_transport_service.h')
-rw-r--r--src/include/gnunet_transport_service.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/include/gnunet_transport_service.h b/src/include/gnunet_transport_service.h
index 8bf295567..70f500610 100644
--- a/src/include/gnunet_transport_service.h
+++ b/src/include/gnunet_transport_service.h
@@ -97,6 +97,10 @@ typedef void
97 peer); 97 peer);
98 98
99 99
100typedef void
101(*GNUNET_TRANSPORT_AddressLookUpCallback) (void *cls,
102 const char *address);
103
100/** 104/**
101 * Connect to the transport service. Note that the connection may 105 * Connect to the transport service. Note that the connection may
102 * complete (or fail) asynchronously. 106 * complete (or fail) asynchronously.
@@ -183,7 +187,7 @@ struct GNUNET_TRANSPORT_TransmitHandle
183 *handle, 187 *handle,
184 const struct GNUNET_PeerIdentity 188 const struct GNUNET_PeerIdentity
185 *target, size_t size, 189 *target, size_t size,
186 unsigned int priority, 190 unsigned int priority,
187 struct GNUNET_TIME_Relative 191 struct GNUNET_TIME_Relative
188 timeout, 192 timeout,
189 GNUNET_CONNECTION_TransmitReadyNotify 193 GNUNET_CONNECTION_TransmitReadyNotify
@@ -230,6 +234,22 @@ void
230GNUNET_TRANSPORT_offer_hello (struct GNUNET_TRANSPORT_Handle *handle, 234GNUNET_TRANSPORT_offer_hello (struct GNUNET_TRANSPORT_Handle *handle,
231 const struct GNUNET_MessageHeader *hello); 235 const struct GNUNET_MessageHeader *hello);
232 236
237/**
238 * Obtain a AddressLookupMessage from a client and return to client all the host addresses of other peers.
239 *
240 * @param handle connection to transport service
241 * @param addLUmsg the address-lookup message
242 */
243void
244GNUNET_TRANSPORT_address_lookup (struct GNUNET_TRANSPORT_Handle *handle,
245 const char * address,
246 size_t addressLen,
247 const char * nameTrans,
248 struct GNUNET_TIME_Relative timeout,
249 GNUNET_TRANSPORT_AddressLookUpCallback aluc,
250 void *aluc_cls);
251
252
233 253
234#if 0 /* keep Emacsens' auto-indent happy */ 254#if 0 /* keep Emacsens' auto-indent happy */
235{ 255{
@@ -241,3 +261,5 @@ GNUNET_TRANSPORT_offer_hello (struct GNUNET_TRANSPORT_Handle *handle,
241/* ifndef GNUNET_TRANSPORT_SERVICE_H */ 261/* ifndef GNUNET_TRANSPORT_SERVICE_H */
242#endif 262#endif
243/* end of gnunet_transport_service.h */ 263/* end of gnunet_transport_service.h */
264
265