diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-11-29 09:37:54 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-11-29 09:37:54 +0000 |
commit | 623df97886da9ee06724b7860a1a2463737b750e (patch) | |
tree | a7638265a42b7b276d10403078411e4f4d8973d8 /src/transport/gnunet-transport.c | |
parent | 51b7d6d6e0d50e77a3fc948af68ae02f325684ac (diff) | |
download | gnunet-623df97886da9ee06724b7860a1a2463737b750e.tar.gz gnunet-623df97886da9ee06724b7860a1a2463737b750e.zip |
first steps to transport_api cleanup
compiles but no guarante to work!
Diffstat (limited to 'src/transport/gnunet-transport.c')
-rw-r--r-- | src/transport/gnunet-transport.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/transport/gnunet-transport.c b/src/transport/gnunet-transport.c index 4c9e8566c..1dc85a903 100644 --- a/src/transport/gnunet-transport.c +++ b/src/transport/gnunet-transport.c | |||
@@ -443,11 +443,15 @@ notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
443 | * @param addrlen number of bytes in addr | 443 | * @param addrlen number of bytes in addr |
444 | */ | 444 | */ |
445 | static void | 445 | static void |
446 | process_address (void *cls, const struct GNUNET_PeerIdentity *peer, | 446 | process_address (void *cls, const struct GNUNET_HELLO_Address *address) |
447 | const char *transport, const void *addr, size_t addrlen) | ||
448 | { | 447 | { |
449 | if ((peer != NULL) || (transport != NULL) || | 448 | if ((address->transport_name != NULL) || |
450 | ((addr != NULL) && (addrlen > 0))) | 449 | ((address->address != NULL) && (address->address_length > 0))) |
450 | { | ||
451 | /* Call GNUNET_TRANSPORT_address_to_string to convert to human readable */ | ||
452 | //GNUNET_TRANSPORT_address_to_string(cfg, address, GNUNET_NO) | ||
453 | |||
454 | #if 0 | ||
451 | fprintf (stdout, _("Peer `%s' plugin: `%s' address `%s'\n"), | 455 | fprintf (stdout, _("Peer `%s' plugin: `%s' address `%s'\n"), |
452 | (peer != NULL) ? GNUNET_i2s (peer) : "<unknown>", | 456 | (peer != NULL) ? GNUNET_i2s (peer) : "<unknown>", |
453 | (transport != NULL) ? transport : "<unknown>", ((addr != NULL) && | 457 | (transport != NULL) ? transport : "<unknown>", ((addr != NULL) && |
@@ -456,6 +460,8 @@ process_address (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
456 | NULL)) ? | 460 | NULL)) ? |
457 | "how do i resolve the name without transport service?" : | 461 | "how do i resolve the name without transport service?" : |
458 | "<unknown>"); | 462 | "<unknown>"); |
463 | #endif | ||
464 | } | ||
459 | } | 465 | } |
460 | 466 | ||
461 | 467 | ||