aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_template.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-05-02 11:48:52 +0000
committerChristian Grothoff <christian@grothoff.org>2010-05-02 11:48:52 +0000
commitf4b1f639e8799d29e823a7cd563a97d314d4f471 (patch)
treebe4854b5c5591ea04b2de4032e554dc392f8d0e0 /src/transport/plugin_transport_template.c
parentf1df9f057d50cd695ee3b86538f27306ea74369f (diff)
downloadgnunet-f4b1f639e8799d29e823a7cd563a97d314d4f471.tar.gz
gnunet-f4b1f639e8799d29e823a7cd563a97d314d4f471.zip
fixing major issue with how IP addresses go over the network (previously ill-defined) -- thanks amatus
Diffstat (limited to 'src/transport/plugin_transport_template.c')
-rw-r--r--src/transport/plugin_transport_template.c24
1 files changed, 24 insertions, 0 deletions
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
@@ -248,6 +248,29 @@ template_plugin_address_suggested (void *cls,
248 248
249 249
250/** 250/**
251 * Function called for a quick conversion of the binary address to
252 * a numeric address. Note that the caller must not free the
253 * address and that the next call to this function is allowed
254 * to override the address again.
255 *
256 * @param cls closure
257 * @param addr binary address
258 * @param addr_len length of the address
259 * @return string representing the same address
260 */
261static const char*
262template_plugin_address_to_string (void *cls,
263 const void *addr,
264 size_t addrlen)
265{
266 GNUNET_break (0);
267 return NULL;
268}
269
270
271
272
273/**
251 * Entry point for the plugin. 274 * Entry point for the plugin.
252 */ 275 */
253void * 276void *
@@ -266,6 +289,7 @@ gnunet_plugin_transport_template_init (void *cls)
266 api->disconnect = &template_plugin_disconnect; 289 api->disconnect = &template_plugin_disconnect;
267 api->address_pretty_printer = &template_plugin_address_pretty_printer; 290 api->address_pretty_printer = &template_plugin_address_pretty_printer;
268 api->check_address = &template_plugin_address_suggested; 291 api->check_address = &template_plugin_address_suggested;
292 api->address_to_string = &template_plugin_address_to_string;
269 return api; 293 return api;
270} 294}
271 295