36#ifndef GNUNET_CORE_UNDERLAY_DUMMY_SERVICE_H
37#define GNUNET_CORE_UNDERLAY_DUMMY_SERVICE_H
47#include <sys/socket.h>
57#define GNUNET_CORE_UNDERLAY_DUMMY_VERSION 0x00000000
79typedef void *(*GNUNET_CORE_UNDERLAY_DUMMY_NotifyConnect) (
81 uint32_t num_addresses,
82 const char *addresses[
static num_addresses],
112 uint32_t num_addresses,
113 const char *addresses[
static num_addresses]);
170GNUNET_CORE_UNDERLAY_DUMMY_receive_continue (
189GNUNET_CORE_UNDERLAY_DUMMY_connect_to_peer (
191 const char *peer_address,
199GNUNET_CORE_UNDERLAY_DUMMY_change_address (
208#define GNUNET_CORE_SIMPLE_DUMMY_UNDERLAY_TRAITS(op, prefix) \
209 op (prefix, connect, const void)
211GNUNET_CORE_SIMPLE_DUMMY_UNDERLAY_TRAITS (
struct GNUNET_MQ_MessageHandlers handlers[]
struct GNUNET_MQ_Handle * mq
static struct GNUNET_ARM_Handle * h
Connection with ARM.
static struct GNUNET_CONFIGURATION_Handle * cfg
Our configuration.
static char * peer_id
Option –peer.
static struct GNUNET_CADET_Channel * ch
Channel handle.
static struct GNUNET_NotificationContext * nc
Notification context for broadcasting to monitors.
static struct GNUNET_VPN_Handle * handle
Handle to vpn service.
#define GNUNET_TESTING_MAKE_DECL_SIMPLE_TRAIT(prefix, name, type)
Create headers for a trait with name name for statically allocated data of type type.
void GNUNET_CORE_UNDERLAY_DUMMY_disconnect(struct GNUNET_CORE_UNDERLAY_DUMMY_Handle *handle)
Disconnect from the core underlay dummy service.
void * cls
Closure for handlers given by the client - connection-independant (notify_connect,...
struct GNUNET_CORE_UNDERLAY_DUMMY_Handle * GNUNET_CORE_UNDERLAY_DUMMY_connect(const struct GNUNET_CONFIGURATION_Handle *cfg, const struct GNUNET_MQ_MessageHandler *handlers, void *cls, GNUNET_CORE_UNDERLAY_DUMMY_NotifyConnect nc, GNUNET_CORE_UNDERLAY_DUMMY_NotifyDisconnect nd, GNUNET_CORE_UNDERLAY_DUMMY_NotifyAddressChange na)
Connect to the core underlay dummy service.
void(* GNUNET_CORE_UNDERLAY_DUMMY_NotifyAddressChange)(void *cls, uint32_t num_addresses, const char *addresses[static num_addresses])
Function called to notify core of the now available addresses.
void *(* GNUNET_CORE_UNDERLAY_DUMMY_NotifyConnect)(void *cls, uint32_t num_addresses, const char *addresses[static num_addresses], struct GNUNET_MQ_Handle *mq, const struct GNUNET_PeerIdentity *peer_id)
Function called to notify core underlay dummy users that another peer connected to us.
void(* GNUNET_CORE_UNDERLAY_DUMMY_NotifyDisconnect)(void *cls, void *handler_cls)
Function called to notify core underlay dummy users that another peer disconnected from us.
GNUNET_MQ_PriorityPreferences
Per envelope preferences and priorities.
32-bit bandwidth used for network exchange by GNUnet, in bytes per second.
Opaque handle to the service.
Handle to a message queue.
Message handler for a specific message type.
The identity of the host (wraps the signing key of the peer).