EDGESEC
0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
|
File containing the definition of the subscriber events structure. More...
#include <stdbool.h>
#include <inttypes.h>
#include <sys/un.h>
#include "supervisor_config.h"
#include "../utils/sockctl.h"
Go to the source code of this file.
Macros | |
#define | EVENT_IP_TEXT "IP" |
#define | EVENT_AP_TEXT "AP" |
Enumerations | |
enum | SUBSCRIBER_EVENT { SUBSCRIBER_EVENT_NONE = 0 , SUBSCRIBER_EVENT_IP , SUBSCRIBER_EVENT_AP } |
Functions | |
int | add_events_subscriber (struct supervisor_context *context, const struct client_address *addr) |
Add a subscriber to the subscriber events array. More... | |
int | send_events_subscriber (struct supervisor_context *context, enum SUBSCRIBER_EVENT type, const char *format,...) |
Send an event to the subscribers array. More... | |
File containing the definition of the subscriber events structure.
#define EVENT_AP_TEXT "AP" |
#define EVENT_IP_TEXT "IP" |
enum SUBSCRIBER_EVENT |
int add_events_subscriber | ( | struct supervisor_context * | context, |
const struct client_address * | addr | ||
) |
Add a subscriber to the subscriber events array.
context | The supervisor context |
addr | The subscriber address |
int send_events_subscriber | ( | struct supervisor_context * | context, |
enum SUBSCRIBER_EVENT | type, | ||
const char * | format, | ||
... | |||
) |
Send an event to the subscribers array.
context | The supervisor context |
type | The event type |
format | The event format text, passed to vsnprintf() |
... | The event format variables, passed to vsnprintf() |