GNUnet  0.11.x
Data Fields
GNUNET_TESTING_Peer Struct Reference

Handle for a GNUnet peer controlled by testing. More...

Collaboration diagram for GNUNET_TESTING_Peer:
[legend]

Data Fields

struct GNUNET_TESTING_Systemsystem
 The TESTING system associated with this peer. More...
 
char * cfgfile
 Path to the configuration file for this peer. More...
 
char * main_binary
 Binary to be executed during 'GNUNET_TESTING_peer_start'. More...
 
char * args
 
struct GNUNET_OS_Processmain_process
 Handle to the running binary of the service, NULL if the peer/service is currently not running. More...
 
struct GNUNET_ARM_Handleah
 The handle to the peer's ARM service. More...
 
struct GNUNET_CONFIGURATION_Handlecfg
 The config of the peer. More...
 
GNUNET_TESTING_PeerStopCallback cb
 The callback to call asynchronously when a peer is stopped. More...
 
void * cb_cls
 The closure for the above callback. More...
 
struct GNUNET_PeerIdentityid
 The cached identity of this peer. More...
 
struct SharedServiceInstance ** ss_instances
 
uint16_t * ports
 Array of ports currently allocated to this peer. More...
 
unsigned int nports
 The number of ports in the above array. More...
 
uint32_t key_number
 The keynumber of this peer's hostkey. More...
 

Detailed Description

Handle for a GNUnet peer controlled by testing.

Definition at line 170 of file testing.c.

Field Documentation

◆ system

struct GNUNET_TESTING_System* GNUNET_TESTING_Peer::system

◆ cfgfile

char* GNUNET_TESTING_Peer::cfgfile

Path to the configuration file for this peer.

Definition at line 180 of file testing.c.

Referenced by GNUNET_TESTING_peer_configure(), GNUNET_TESTING_peer_destroy(), and GNUNET_TESTING_peer_start().

◆ main_binary

char* GNUNET_TESTING_Peer::main_binary

Binary to be executed during 'GNUNET_TESTING_peer_start'.

Typically 'gnunet-service-arm' (but can be set to a specific service by 'GNUNET_TESTING_service_run' if necessary).

Definition at line 188 of file testing.c.

Referenced by GNUNET_TESTING_peer_configure(), GNUNET_TESTING_peer_destroy(), GNUNET_TESTING_peer_start(), and GNUNET_TESTING_service_run().

◆ args

char* GNUNET_TESTING_Peer::args

◆ main_process

struct GNUNET_OS_Process* GNUNET_TESTING_Peer::main_process

Handle to the running binary of the service, NULL if the peer/service is currently not running.

Definition at line 195 of file testing.c.

Referenced by GNUNET_TESTING_peer_destroy(), GNUNET_TESTING_peer_kill(), GNUNET_TESTING_peer_start(), GNUNET_TESTING_peer_stop_async(), GNUNET_TESTING_peer_wait(), and GNUNET_TESTING_service_run().

◆ ah

struct GNUNET_ARM_Handle* GNUNET_TESTING_Peer::ah

The handle to the peer's ARM service.

Definition at line 200 of file testing.c.

Referenced by disconn_status(), GNUNET_TESTING_peer_destroy(), GNUNET_TESTING_peer_stop_async(), and GNUNET_TESTING_peer_stop_async_cancel().

◆ cfg

struct GNUNET_CONFIGURATION_Handle* GNUNET_TESTING_Peer::cfg

◆ cb

GNUNET_TESTING_PeerStopCallback GNUNET_TESTING_Peer::cb

The callback to call asynchronously when a peer is stopped.

Definition at line 210 of file testing.c.

Referenced by disconn_status(), and GNUNET_TESTING_peer_stop_async().

◆ cb_cls

void* GNUNET_TESTING_Peer::cb_cls

The closure for the above callback.

Definition at line 215 of file testing.c.

Referenced by disconn_status(), and GNUNET_TESTING_peer_stop_async().

◆ id

struct GNUNET_PeerIdentity* GNUNET_TESTING_Peer::id

The cached identity of this peer.

Will be populated on call to GNUNET_TESTING_peer_get_identity()

Definition at line 221 of file testing.c.

Referenced by GNUNET_TESTING_peer_destroy(), and GNUNET_TESTING_peer_get_identity().

◆ ss_instances

struct SharedServiceInstance** GNUNET_TESTING_Peer::ss_instances

◆ ports

uint16_t* GNUNET_TESTING_Peer::ports

Array of ports currently allocated to this peer.

These ports will be released upon peer destroy and can be used by other peers which are configured after.

Definition at line 230 of file testing.c.

Referenced by GNUNET_TESTING_peer_configure(), and GNUNET_TESTING_peer_destroy().

◆ nports

unsigned int GNUNET_TESTING_Peer::nports

The number of ports in the above array.

Definition at line 235 of file testing.c.

Referenced by GNUNET_TESTING_peer_configure(), and GNUNET_TESTING_peer_destroy().

◆ key_number

uint32_t GNUNET_TESTING_Peer::key_number

The keynumber of this peer's hostkey.

Definition at line 240 of file testing.c.

Referenced by GNUNET_TESTING_peer_configure(), and GNUNET_TESTING_peer_get_identity().


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