Libtrap: Internal development docs  1.16.1
Data Structures | Macros | Typedefs | Functions
trap_ifc.h File Reference

Interface of TRAP interfaces. More...

#include <stdint.h>
#include <sys/time.h>
#include <pthread.h>
#include <semaphore.h>
Include dependency graph for trap_ifc.h:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Interface of TRAP interfaces.

Author
Vaclav Bartos ibart.nosp@m.osv@.nosp@m.fit.v.nosp@m.utbr.nosp@m..cz
Tomas Cejka cejka.nosp@m.t@ce.nosp@m.snet..nosp@m.cz
Jan Neuzil neuzi.nosp@m.ja1@.nosp@m.fit.c.nosp@m.vut..nosp@m.cz
Marek Svepes svepe.nosp@m.mar@.nosp@m.fit.c.nosp@m.vut..nosp@m.cz
Tomas Jansky jansk.nosp@m.to1@.nosp@m.fit.c.nosp@m.vut..nosp@m.cz
Date
2013 -2018

Definition in file trap_ifc.h.