|
EDGESEC
0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
|
#include <stdio.h>#include <stdlib.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include <errno.h>#include <libgen.h>#include <sqlite3ext.h>#include <utarray.h>#include "utils/allocs.h"#include "utils/os.h"#include "utils/sockctl.h"Data Structures | |
| struct | dir_ctx |
Macros | |
| #define | SOCK_EXTENSION ".sock" |
| #define | ENV_DB_KEY "EDGESEC" |
| #define | DOMAIN_ID_STR "domain" |
| #define | DELIMITER_CHAR '_' |
Functions | |
| bool | list_dir_function (char *path, void *args) |
| int | get_dir_file_sockets (struct dir_ctx *ctx) |
| void | send_domain_message (char *path, char *message) |
| int | create_udp_client (void) |
| void | send_udp_message (int port, char *message) |
| void | update_hook (void *data, int type, char const *database, char const *table, sqlite3_int64 rowid) |
| int | sqlite3_extension_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi) |
| #define DELIMITER_CHAR '_' |
| #define DOMAIN_ID_STR "domain" |
| #define ENV_DB_KEY "EDGESEC" |
| #define SOCK_EXTENSION ".sock" |
| int create_udp_client | ( | void | ) |
| int get_dir_file_sockets | ( | struct dir_ctx * | ctx | ) |
| bool list_dir_function | ( | char * | path, |
| void * | args | ||
| ) |
| void send_domain_message | ( | char * | path, |
| char * | message | ||
| ) |
| void send_udp_message | ( | int | port, |
| char * | message | ||
| ) |
| int sqlite3_extension_init | ( | sqlite3 * | db, |
| char ** | pzErrMsg, | ||
| const sqlite3_api_routines * | pApi | ||
| ) |
| void update_hook | ( | void * | data, |
| int | type, | ||
| char const * | database, | ||
| char const * | table, | ||
| sqlite3_int64 | rowid | ||
| ) |