GNUnet  0.11.x
Data Fields
GNUNET_TESTBED_EventInformation Struct Reference

Argument to GNUNET_TESTBED_ControllerCallback with details about the event. More...

#include <gnunet_testbed_service.h>

Collaboration diagram for GNUNET_TESTBED_EventInformation:
[legend]

Data Fields

enum GNUNET_TESTBED_EventType type
 Type of the event. More...
 
struct GNUNET_TESTBED_Operationop
 Handle for the corresponding operation that generated this event. More...
 
void * op_cls
 Closure given while creating the above operation. More...
 
union {
   struct {
      struct GNUNET_TESTBED_Host *   host
 Handle for the host where the peer was started. More...
 
      struct GNUNET_TESTBED_Peer *   peer
 Handle for the peer that was started. More...
 
   }   peer_start
 Details about peer start event. More...
 
   struct {
      struct GNUNET_TESTBED_Peer *   peer
 Handle for the peer that was started. More...
 
   }   peer_stop
 Details about peer stop event. More...
 
   struct {
      struct GNUNET_TESTBED_Peer *   peer1
 Handle for one of the connected peers. More...
 
      struct GNUNET_TESTBED_Peer *   peer2
 Handle for one of the connected peers. More...
 
   }   peer_connect
 Details about connect event. More...
 
   struct {
      struct GNUNET_TESTBED_Peer *   peer1
 Handle for one of the disconnected peers. More...
 
      struct GNUNET_TESTBED_Peer *   peer2
 Handle for one of the disconnected peers. More...
 
   }   peer_disconnect
 Details about disconnect event. More...
 
   struct {
      const char *   emsg
 Error message for the operation, NULL on success. More...
 
      void *   generic
 No result (NULL pointer) or generic result (whatever the GNUNET_TESTBED_ConnectAdapter returned). More...
 
   }   operation_finished
 Details about an operation finished event. More...
 
details
 Details about the event. More...
 

Detailed Description

Argument to GNUNET_TESTBED_ControllerCallback with details about the event.

Definition at line 298 of file gnunet_testbed_service.h.

Field Documentation

◆ type

enum GNUNET_TESTBED_EventType GNUNET_TESTBED_EventInformation::type

◆ op

struct GNUNET_TESTBED_Operation* GNUNET_TESTBED_EventInformation::op

Handle for the corresponding operation that generated this event.

Definition at line 308 of file gnunet_testbed_service.h.

Referenced by configuration_receiver(), event_cb(), handle_op_fail_event(), handle_opsuccess(), handle_peer_conevent(), handle_peer_event(), and slave_event_cb().

◆ op_cls

void* GNUNET_TESTBED_EventInformation::op_cls

Closure given while creating the above operation.

Definition at line 313 of file gnunet_testbed_service.h.

Referenced by configuration_receiver().

◆ host

struct GNUNET_TESTBED_Host* GNUNET_TESTBED_EventInformation::host

Handle for the host where the peer was started.

Definition at line 329 of file gnunet_testbed_service.h.

◆ peer

struct GNUNET_TESTBED_Peer* GNUNET_TESTBED_EventInformation::peer

Handle for the peer that was started.

Definition at line 334 of file gnunet_testbed_service.h.

◆ peer_start

struct { ... } GNUNET_TESTBED_EventInformation::peer_start

Details about peer start event.

◆ peer_stop

struct { ... } GNUNET_TESTBED_EventInformation::peer_stop

Details about peer stop event.

◆ peer1

struct GNUNET_TESTBED_Peer* GNUNET_TESTBED_EventInformation::peer1

Handle for one of the connected peers.

Handle for one of the disconnected peers.

Definition at line 356 of file gnunet_testbed_service.h.

◆ peer2

struct GNUNET_TESTBED_Peer* GNUNET_TESTBED_EventInformation::peer2

Handle for one of the connected peers.

Handle for one of the disconnected peers.

Definition at line 361 of file gnunet_testbed_service.h.

◆ peer_connect

struct { ... } GNUNET_TESTBED_EventInformation::peer_connect

Details about connect event.

◆ peer_disconnect

struct { ... } GNUNET_TESTBED_EventInformation::peer_disconnect

Details about disconnect event.

◆ emsg

const char* GNUNET_TESTBED_EventInformation::emsg

Error message for the operation, NULL on success.

Definition at line 388 of file gnunet_testbed_service.h.

Referenced by configuration_receiver(), and handle_link_controllers_result().

◆ generic

void* GNUNET_TESTBED_EventInformation::generic

No result (NULL pointer) or generic result (whatever the GNUNET_TESTBED_ConnectAdapter returned).

Definition at line 394 of file gnunet_testbed_service.h.

◆ operation_finished

struct { ... } GNUNET_TESTBED_EventInformation::operation_finished

Details about an operation finished event.

Referenced by configuration_receiver(), controller_event_cb(), event_cb(), and slave_event_cb().

◆ details

union { ... } GNUNET_TESTBED_EventInformation::details

Details about the event.

Referenced by configuration_receiver(), controller_event_cb(), event_cb(), and slave_event_cb().


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