GNUnet  0.11.x
Data Fields
GNUNET_SERVER_MessageHandler Struct Reference

Message handler. More...

Collaboration diagram for GNUNET_SERVER_MessageHandler:
[legend]

Data Fields

GNUNET_SERVER_MessageCallback callback
 Function to call for messages of "type". More...
 
void * callback_cls
 Closure argument for callback. More...
 
uint16_t type
 Type of the message this handler covers. More...
 
uint16_t expected_size
 Expected size of messages of this type. More...
 

Detailed Description

Message handler.

Each struct specifies how to handle on particular type of message received.

Definition at line 253 of file plugin_transport_tcp.c.

Field Documentation

◆ callback

GNUNET_SERVER_MessageCallback GNUNET_SERVER_MessageHandler::callback

Function to call for messages of "type".

Definition at line 258 of file plugin_transport_tcp.c.

Referenced by GNUNET_SERVER_inject(), LEGACY_SERVICE_start(), and service_task().

◆ callback_cls

void* GNUNET_SERVER_MessageHandler::callback_cls

Closure argument for callback.

Definition at line 263 of file plugin_transport_tcp.c.

Referenced by GNUNET_SERVER_inject(), LEGACY_SERVICE_start(), libgnunet_plugin_transport_tcp_init(), and service_task().

◆ type

uint16_t GNUNET_SERVER_MessageHandler::type

Type of the message this handler covers.

Definition at line 268 of file plugin_transport_tcp.c.

Referenced by GNUNET_SERVER_inject().

◆ expected_size

uint16_t GNUNET_SERVER_MessageHandler::expected_size

Expected size of messages of this type.

Use 0 for variable-size. If non-zero, messages of the given type will be discarded (and the connection closed) if they do not have the right size.

Definition at line 276 of file plugin_transport_tcp.c.

Referenced by GNUNET_SERVER_inject().


The documentation for this struct was generated from the following file: