diff options
author | Ji Lu <jilu@140774ce-b5e7-0310-ab8b-a85725594a96> | 2009-12-10 20:57:19 +0000 |
---|---|---|
committer | Ji Lu <jilu@140774ce-b5e7-0310-ab8b-a85725594a96> | 2009-12-10 20:57:19 +0000 |
commit | 447e98232feed479ba91e3511bdd31da8dc1e446 (patch) | |
tree | ebba298f4abe089e4175ab5f115e36e5a3be5c95 /src/include | |
parent | 2fc2a43b0c581c684b43b42a0367bce3f13872a2 (diff) | |
download | gnunet-447e98232feed479ba91e3511bdd31da8dc1e446.tar.gz gnunet-447e98232feed479ba91e3511bdd31da8dc1e446.zip |
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_transport_service.h | 24 |
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 | ||
100 | typedef 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 | |||
230 | GNUNET_TRANSPORT_offer_hello (struct GNUNET_TRANSPORT_Handle *handle, | 234 | GNUNET_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 | */ | ||
243 | void | ||
244 | GNUNET_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 | |||