From f4b1f639e8799d29e823a7cd563a97d314d4f471 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 2 May 2010 11:48:52 +0000 Subject: fixing major issue with how IP addresses go over the network (previously ill-defined) -- thanks amatus --- src/transport/plugin_transport_template.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/transport/plugin_transport_template.c') diff --git a/src/transport/plugin_transport_template.c b/src/transport/plugin_transport_template.c index f09503b9b..1ca4d018f 100644 --- a/src/transport/plugin_transport_template.c +++ b/src/transport/plugin_transport_template.c @@ -247,6 +247,29 @@ template_plugin_address_suggested (void *cls, } +/** + * Function called for a quick conversion of the binary address to + * a numeric address. Note that the caller must not free the + * address and that the next call to this function is allowed + * to override the address again. + * + * @param cls closure + * @param addr binary address + * @param addr_len length of the address + * @return string representing the same address + */ +static const char* +template_plugin_address_to_string (void *cls, + const void *addr, + size_t addrlen) +{ + GNUNET_break (0); + return NULL; +} + + + + /** * Entry point for the plugin. */ @@ -266,6 +289,7 @@ gnunet_plugin_transport_template_init (void *cls) api->disconnect = &template_plugin_disconnect; api->address_pretty_printer = &template_plugin_address_pretty_printer; api->check_address = &template_plugin_address_suggested; + api->address_to_string = &template_plugin_address_to_string; return api; } -- cgit v1.2.3