Libtrap: Internal development docs
1.16.1
|
Modules | |
IFC API | |
file interface module | |
TCP/IP and UNIX socket communication interface module | |
TLS communication interface module | |
Data Structures | |
struct | trap_input_ifc_s |
struct | trap_output_ifc_s |
Macros | |
#define | TRAP_IFC_DEFAULT_MAX_CLIENTS 64 |
Typedefs | |
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... | |
#define TRAP_IFC_DEFAULT_MAX_CLIENTS 64 |
Default max number of clients that can connect to output interface. It takes effect when no value is given during interface initialization.
Definition at line 64 of file trap_ifc.h.
typedef struct trap_input_ifc_s trap_input_ifc_t |
Struct to hold an instance of some input interface.
typedef struct trap_output_ifc_s trap_output_ifc_t |
Struct to hold an instance of some output interface.
void trap_set_abs_timespec | ( | struct timeval * | tm, |
struct timespec * | tmnblk | ||
) |
Internal function for setting of timeout structs according to libtrap timeout.
[in] | tm | Precomputed timeval, set using e.g. trap_set_timeouts(). |
[out] | tmnblk | Used for sem_timedwait() call to block on semaphore. |
void trap_set_timeouts | ( | int | timeout, |
struct timeval * | tm, | ||
struct timespec * | tmnblk | ||
) |
Internal function for setting of timeout structs according to libtrap timeout.
[in] | timeout | timeout in microseconds, or TRAP Timeout |
[out] | tm | used for select() call when non-blocking |
[out] | tmnblk | used for sem_timedwait() call to block on semaphore. |