struct returned by the initialization function of the plugin More...
#include <gnunet_dhtu_plugin.h>
Data Fields | |
void * | cls |
Closure to pass to all plugin functions. More... | |
void(* | try_connect )(void *cls, const struct GNUNET_PeerIdentity *pid, const char *address) |
Request creation of a session with a peer at the given address. More... | |
struct GNUNET_DHTU_PreferenceHandle *(* | hold )(void *cls, struct GNUNET_DHTU_Target *target) |
Request underlay to keep the connection to target alive if possible. More... | |
void(* | drop )(struct GNUNET_DHTU_PreferenceHandle *ph) |
Do no longer request underlay to keep the connection alive. More... | |
void(* | send )(void *cls, struct GNUNET_DHTU_Target *target, const void *msg, size_t msg_size, GNUNET_SCHEDULER_TaskCallback finished_cb, void *finished_cb_cls) |
Send message to some other participant over the network. More... | |
struct returned by the initialization function of the plugin
Definition at line 166 of file gnunet_dhtu_plugin.h.
void* GNUNET_DHTU_PluginFunctions::cls |
Closure to pass to all plugin functions.
Definition at line 171 of file gnunet_dhtu_plugin.h.
Referenced by DHTU_gnunet_init(), and DHTU_ip_init().
void(* GNUNET_DHTU_PluginFunctions::try_connect) (void *cls, const struct GNUNET_PeerIdentity *pid, const char *address) |
Request creation of a session with a peer at the given address.
cls | closure (internal context for the plugin) |
pid | target identity of the peer to connect to |
address | target address URI to connect to |
Definition at line 180 of file gnunet_dhtu_plugin.h.
Referenced by DHTU_gnunet_init(), and DHTU_ip_init().
struct GNUNET_DHTU_PreferenceHandle *(* GNUNET_DHTU_PluginFunctions::hold) (void *cls, struct GNUNET_DHTU_Target *target) |
Request underlay to keep the connection to target alive if possible.
Hold may be called multiple times to express a strong preference to keep a connection, say because a target is in multiple tables.
cls | closure |
target | connection to keep alive |
Definition at line 180 of file gnunet_dhtu_plugin.h.
Referenced by DHTU_gnunet_init(), and DHTU_ip_init().
void(* GNUNET_DHTU_PluginFunctions::drop) (struct GNUNET_DHTU_PreferenceHandle *ph) |
Do no longer request underlay to keep the connection alive.
cls | closure |
target | connection to keep alive |
Definition at line 204 of file gnunet_dhtu_plugin.h.
Referenced by DHTU_gnunet_init(), and DHTU_ip_init().
void(* GNUNET_DHTU_PluginFunctions::send) (void *cls, struct GNUNET_DHTU_Target *target, const void *msg, size_t msg_size, GNUNET_SCHEDULER_TaskCallback finished_cb, void *finished_cb_cls) |
Send message to some other participant over the network.
Note that sending is not guaranteeing that the other peer actually received the message. For any given target, the DHT must wait for the finished_cb to be called before calling send() again.
cls | closure (internal context for the plugin) |
target | receiver identification |
msg | message |
msg_size | number of bytes in msg |
finished_cb | function called once transmission is done (not called if target disconnects, then only the disconnect_cb is called). |
finished_cb_cls | closure for finished_cb |
Definition at line 222 of file gnunet_dhtu_plugin.h.
Referenced by DHTU_gnunet_init(), and DHTU_ip_init().