diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-12 15:04:40 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-12 15:04:40 +0000 |
commit | 9c0c85db03087f2284a58e31b52b9d96f2436972 (patch) | |
tree | 5a0db54f032cf9a71728859aecbf378ea5b8778d /src/transport/plugin_transport_template.c | |
parent | d59a3ba5d604cd8355a231c34ce5e92b7af56a3b (diff) | |
download | gnunet-9c0c85db03087f2284a58e31b52b9d96f2436972.tar.gz gnunet-9c0c85db03087f2284a58e31b52b9d96f2436972.zip |
template update
Diffstat (limited to 'src/transport/plugin_transport_template.c')
-rw-r--r-- | src/transport/plugin_transport_template.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_template.c b/src/transport/plugin_transport_template.c index e8874d14e..bf405dba6 100644 --- a/src/transport/plugin_transport_template.c +++ b/src/transport/plugin_transport_template.c | |||
@@ -242,6 +242,11 @@ template_plugin_address_pretty_printer (void *cls, const char *type, | |||
242 | GNUNET_TRANSPORT_AddressStringCallback | 242 | GNUNET_TRANSPORT_AddressStringCallback |
243 | asc, void *asc_cls) | 243 | asc, void *asc_cls) |
244 | { | 244 | { |
245 | if (0 == addrlen) | ||
246 | { | ||
247 | asc (asc_cls, TRANSPORT_SESSION_INBOUND_STRING); | ||
248 | } | ||
249 | |||
245 | asc (asc_cls, NULL); | 250 | asc (asc_cls, NULL); |
246 | } | 251 | } |
247 | 252 | ||
@@ -284,9 +289,14 @@ static const char * | |||
284 | template_plugin_address_to_string (void *cls, const void *addr, size_t addrlen) | 289 | template_plugin_address_to_string (void *cls, const void *addr, size_t addrlen) |
285 | { | 290 | { |
286 | /* | 291 | /* |
287 | * Parse string in format template.options.address | 292 | * Print address in format template.options.address |
288 | */ | 293 | */ |
289 | 294 | ||
295 | if (0 == addrlen) | ||
296 | { | ||
297 | return TRANSPORT_SESSION_INBOUND_STRING; | ||
298 | } | ||
299 | |||
290 | GNUNET_break (0); | 300 | GNUNET_break (0); |
291 | return NULL; | 301 | return NULL; |
292 | } | 302 | } |
@@ -310,9 +320,10 @@ template_plugin_string_to_address (void *cls, const char *addr, uint16_t addrlen | |||
310 | { | 320 | { |
311 | 321 | ||
312 | /* | 322 | /* |
313 | * Print address in format template.options.address | 323 | * Parse string in format template.options.address |
314 | */ | 324 | */ |
315 | 325 | ||
326 | |||
316 | GNUNET_break (0); | 327 | GNUNET_break (0); |
317 | return GNUNET_SYSERR; | 328 | return GNUNET_SYSERR; |
318 | } | 329 | } |