Electroneum
fake_event.h File Reference

Go to the source code of this file.

Functions

void fake_event_init (struct replay_scenario *scen)
 
void fake_event_cleanup (void)
 
void fake_temp_file (const char *adj, const char *id, char *buf, size_t len)
 

Detailed Description

Event service that replays a scenario. This implements the same exported symbols as the files: util/netevent.c services/listen_dnsport.c services/outside_network.c But these do not actually access the network or events, instead the scenario is played.

Definition in file fake_event.h.

Function Documentation

◆ fake_event_cleanup()

void fake_event_cleanup ( void  )

Deinit fake event services.

◆ fake_event_init()

void fake_event_init ( struct replay_scenario scen)

Initialise fake event services.

The fake event services will automatically start when the main program calls netevent.h functions, such as comm_base_dispatch().

Parameters
scenSet the scenario to use for upcoming event handling.

◆ fake_temp_file()

void fake_temp_file ( const char *  adj,
const char *  id,
char *  buf,
size_t  len 
)

Get filename to store temporary config stuff. The pid is added. in /tmp.

Parameters
adjadjective, like "_cfg_", "_auto_"
ididentifier, like "example.com".
bufwhere to store.
lenlength of buf.