Handle for a GNUnet peer controlled by testing. More...
Data Fields | |
struct GNUNET_TESTING_System * | system |
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_Process * | main_process |
Handle to the running binary of the service, NULL if the peer/service is currently not running. More... | |
struct GNUNET_ARM_Handle * | ah |
The handle to the peer's ARM service. More... | |
struct GNUNET_CONFIGURATION_Handle * | cfg |
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_PeerIdentity * | id |
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... | |
struct GNUNET_TESTING_System* GNUNET_TESTING_Peer::system |
The TESTING system associated with this peer.
Definition at line 199 of file testing.c.
Referenced by GNUNET_TESTING_peer_configure(), GNUNET_TESTING_peer_destroy(), GNUNET_TESTING_peer_get_identity(), GNUNET_TESTING_peer_kill(), and GNUNET_TESTING_peer_start().
char* GNUNET_TESTING_Peer::cfgfile |
Path to the configuration file for this peer.
Definition at line 204 of file testing.c.
Referenced by GNUNET_TESTING_peer_configure(), GNUNET_TESTING_peer_destroy(), and GNUNET_TESTING_peer_start().
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 212 of file testing.c.
Referenced by GNUNET_TESTING_peer_configure(), GNUNET_TESTING_peer_destroy(), GNUNET_TESTING_peer_start(), and GNUNET_TESTING_service_run().
char* GNUNET_TESTING_Peer::args |
Definition at line 213 of file testing.c.
Referenced by GNUNET_TESTING_peer_configure(), GNUNET_TESTING_peer_destroy(), GNUNET_TESTING_peer_start(), and GNUNET_TESTING_service_run().
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 219 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().
struct GNUNET_ARM_Handle* GNUNET_TESTING_Peer::ah |
The handle to the peer's ARM service.
Definition at line 224 of file testing.c.
Referenced by disconn_status(), GNUNET_TESTING_peer_destroy(), GNUNET_TESTING_peer_stop_async(), and GNUNET_TESTING_peer_stop_async_cancel().
struct GNUNET_CONFIGURATION_Handle* GNUNET_TESTING_Peer::cfg |
The config of the peer.
Definition at line 229 of file testing.c.
Referenced by GNUNET_TESTING_peer_configure(), GNUNET_TESTING_peer_destroy(), GNUNET_TESTING_peer_start(), and GNUNET_TESTING_peer_stop_async().
GNUNET_TESTING_PeerStopCallback GNUNET_TESTING_Peer::cb |
The callback to call asynchronously when a peer is stopped.
Definition at line 234 of file testing.c.
Referenced by disconn_status(), and GNUNET_TESTING_peer_stop_async().
void* GNUNET_TESTING_Peer::cb_cls |
The closure for the above callback.
Definition at line 239 of file testing.c.
Referenced by disconn_status(), and GNUNET_TESTING_peer_stop_async().
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 245 of file testing.c.
Referenced by GNUNET_TESTING_peer_destroy(), and GNUNET_TESTING_peer_get_identity().
struct SharedServiceInstance** GNUNET_TESTING_Peer::ss_instances |
Definition at line 247 of file testing.c.
Referenced by GNUNET_TESTING_peer_configure(), GNUNET_TESTING_peer_destroy(), GNUNET_TESTING_peer_kill(), and GNUNET_TESTING_peer_start().
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 254 of file testing.c.
Referenced by GNUNET_TESTING_peer_configure(), and GNUNET_TESTING_peer_destroy().
unsigned int GNUNET_TESTING_Peer::nports |
The number of ports in the above array.
Definition at line 259 of file testing.c.
Referenced by GNUNET_TESTING_peer_configure(), and GNUNET_TESTING_peer_destroy().
uint32_t GNUNET_TESTING_Peer::key_number |
The keynumber of this peer's hostkey.
Definition at line 264 of file testing.c.
Referenced by GNUNET_TESTING_peer_configure(), and GNUNET_TESTING_peer_get_identity().