Libtrap: Internal development docs
1.16.1
|
Interface of TRAP interfaces. More...
#include <stdint.h>
#include <sys/time.h>
#include <pthread.h>
#include <semaphore.h>
Go to the source code of this file.
Data Structures | |
struct | trap_input_ifc_s |
struct | trap_output_ifc_s |
Macros | |
#define | TRAP_IFC_DEFAULT_MAX_CLIENTS 64 |
Typedefs | |
typedef int(* | ifc_recv_func_t) (void *p, void *d, uint32_t *s, int t) |
typedef int(* | ifc_send_func_t) (void *p, const void *d, uint16_t s, int t) |
typedef void(* | ifc_flush_func_t) (void *p) |
typedef void(* | ifc_disconn_clients_func_t) (void *p) |
typedef void(* | ifc_terminate_func_t) (void *p) |
typedef void(* | ifc_destroy_func_t) (void *p) |
typedef void(* | ifc_create_dump_func_t) (void *p, uint32_t i, const char *d) |
typedef int32_t(* | ifc_get_client_count_func_t) (void *p) |
typedef int8_t(* | ifc_get_client_stats_json_func_t) (void *p, json_t *client_stats_arr) |
typedef char *(* | ifc_get_id_func_t) (void *priv) |
typedef uint8_t(* | ifc_is_conn_func_t) (void *priv) |
typedef struct trap_input_ifc_s | trap_input_ifc_t |
typedef struct trap_output_ifc_s | trap_output_ifc_t |
Functions | |
void | trap_set_timeouts (int timeout, struct timeval *tm, struct timespec *tmnblk) |
Internal function for setting of timeout structs according to libtrap timeout. More... | |
void | trap_set_abs_timespec (struct timeval *tm, struct timespec *tmnblk) |
Internal function for setting of timeout structs according to libtrap timeout. More... | |