GNUnet  0.20.0
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 284 of file gnunet_testbed_service.h.

Field Documentation

◆ type

◆ op

struct GNUNET_TESTBED_Operation* GNUNET_TESTBED_EventInformation::op

Handle for the corresponding operation that generated this event.

Definition at line 294 of file gnunet_testbed_service.h.

Referenced by 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 299 of file gnunet_testbed_service.h.

◆ host

struct GNUNET_TESTBED_Host* GNUNET_TESTBED_EventInformation::host

Handle for the host where the peer was started.

Definition at line 315 of file gnunet_testbed_service.h.

Referenced by handle_link_controllers_result().

◆ peer

◆ 

struct { ... } GNUNET_TESTBED_EventInformation::peer_start

Details about peer start event.

◆ 

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 342 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 347 of file gnunet_testbed_service.h.

Referenced by gnunet_testing.EqualStatisticsCondition::check(), and gnunet_testing.EqualStatisticsCondition::evaluate().

◆ 

struct { ... } GNUNET_TESTBED_EventInformation::peer_connect

Details about connect event.

◆ 

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 374 of file gnunet_testbed_service.h.

Referenced by configuration_receiver(), handle_link_controllers_result(), and handle_op_fail_event().

◆ generic

void* GNUNET_TESTBED_EventInformation::generic

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

Definition at line 380 of file gnunet_testbed_service.h.

◆ 

struct { ... } GNUNET_TESTBED_EventInformation::operation_finished

Details about an operation finished event.

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

◆ 

union { ... } GNUNET_TESTBED_EventInformation::details

Details about the event.

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


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