Type Definition gnunet_sys::GNUNET_TRANSPORT_AddressToStringCallback[][src]

type GNUNET_TRANSPORT_AddressToStringCallback = Option<unsafe extern "C" fn(cls: *mut c_void, address: *const c_char, res: c_int)>;

Function to call with a textual representation of an address. This function will be called several times with different possible textual representations, and a last time with @a address being NULL to signal the end of the iteration. Note that @a address NULL always is the last call, regardless of the value in @a res.

@param cls closure @param address NULL on end of iteration, otherwise 0-terminated printable UTF-8 string, in particular an empty string if @a res is #GNUNET_NO @param res result of the address to string conversion: if #GNUNET_OK: conversion successful if #GNUNET_NO: address was invalid (or not supported) if #GNUNET_SYSERR: communication error (IPC error)