Libtrap: Internal development docs  1.16.1
Data Fields

Structure for TCP/IP IFC private information. More...

#include <ifc_tcpip_internal.h>

Collaboration diagram for tcpip_sender_private_s:
Collaboration graph
[legend]

Data Fields

trap_ctx_priv_tctx
 
enum tcpip_ifc_sockettype socket_type
 
int term_pipe [2]
 
int server_sd
 
char * server_port
 
char is_terminated
 
char initialized
 
uint64_t autoflush_timestamp
 
uint64_t clients_bit_arr
 
uint32_t ifc_idx
 
uint32_t connected_clients
 
uint32_t clients_arr_size
 
uint32_t buffer_count
 
uint32_t buffer_size
 
uint32_t active_buffer
 
buffer_tbuffers
 
client_tclients
 
struct pollfd * clients_pfds
 
pthread_t accept_thr
 
pthread_t send_thr
 
pthread_mutex_t mtx_no_data
 
pthread_cond_t cond_no_data
 
pthread_cond_t cond_full_buffer
 

Detailed Description

Structure for TCP/IP IFC private information.

Definition at line 79 of file ifc_tcpip_internal.h.

Field Documentation

◆ accept_thr

pthread_t tcpip_sender_private_s::accept_thr

Pthread structure containing info about accept thread

Definition at line 106 of file ifc_tcpip_internal.h.

◆ active_buffer

uint32_t tcpip_sender_private_s::active_buffer

Index of active buffer in 'buffers' array

Definition at line 99 of file ifc_tcpip_internal.h.

◆ autoflush_timestamp

uint64_t tcpip_sender_private_s::autoflush_timestamp

Time when the last buffer was finished - used for autoflush

Definition at line 91 of file ifc_tcpip_internal.h.

◆ buffer_count

uint32_t tcpip_sender_private_s::buffer_count

Number of buffers used

Definition at line 97 of file ifc_tcpip_internal.h.

◆ buffer_size

uint32_t tcpip_sender_private_s::buffer_size

Buffer size [bytes]

Definition at line 98 of file ifc_tcpip_internal.h.

◆ buffers

buffer_t* tcpip_sender_private_s::buffers

Array of buffer structures

Definition at line 101 of file ifc_tcpip_internal.h.

◆ clients

client_t* tcpip_sender_private_s::clients

Array of client structures

Definition at line 102 of file ifc_tcpip_internal.h.

◆ clients_arr_size

uint32_t tcpip_sender_private_s::clients_arr_size

Maximum number of clients

Definition at line 96 of file ifc_tcpip_internal.h.

◆ clients_bit_arr

uint64_t tcpip_sender_private_s::clients_bit_arr

Bit array of currently connected clients - lowest bit = index 0, highest bit = index 63

Definition at line 92 of file ifc_tcpip_internal.h.

◆ clients_pfds

struct pollfd* tcpip_sender_private_s::clients_pfds

Array of clients pfds for poll

Definition at line 104 of file ifc_tcpip_internal.h.

◆ cond_full_buffer

pthread_cond_t tcpip_sender_private_s::cond_full_buffer

Condition struct used when waiting for free buffer

Definition at line 111 of file ifc_tcpip_internal.h.

◆ cond_no_data

pthread_cond_t tcpip_sender_private_s::cond_no_data

Condition struct used when waiting for new data

Definition at line 110 of file ifc_tcpip_internal.h.

◆ connected_clients

uint32_t tcpip_sender_private_s::connected_clients

Number of currently connected clients

Definition at line 95 of file ifc_tcpip_internal.h.

◆ ctx

trap_ctx_priv_t* tcpip_sender_private_s::ctx

Libtrap context

Definition at line 80 of file ifc_tcpip_internal.h.

◆ ifc_idx

uint32_t tcpip_sender_private_s::ifc_idx

Index of interface in 'out_ifc_list' array

Definition at line 94 of file ifc_tcpip_internal.h.

◆ initialized

char tcpip_sender_private_s::initialized

Initialization flag

Definition at line 89 of file ifc_tcpip_internal.h.

◆ is_terminated

char tcpip_sender_private_s::is_terminated

Termination flag

Definition at line 88 of file ifc_tcpip_internal.h.

◆ mtx_no_data

pthread_mutex_t tcpip_sender_private_s::mtx_no_data

Mutex for cond_no_data

Definition at line 109 of file ifc_tcpip_internal.h.

◆ send_thr

pthread_t tcpip_sender_private_s::send_thr

Pthread structure containing info about sending thread

Definition at line 107 of file ifc_tcpip_internal.h.

◆ server_port

char* tcpip_sender_private_s::server_port

TCPIP port number / UNIX socket path

Definition at line 87 of file ifc_tcpip_internal.h.

◆ server_sd

int tcpip_sender_private_s::server_sd

Server socket descriptor

Definition at line 85 of file ifc_tcpip_internal.h.

◆ socket_type

enum tcpip_ifc_sockettype tcpip_sender_private_s::socket_type

Socket type (TCPIP / UNIX)

Definition at line 82 of file ifc_tcpip_internal.h.

◆ term_pipe

int tcpip_sender_private_s::term_pipe[2]

File descriptor pair for select() termination

Definition at line 84 of file ifc_tcpip_internal.h.


The documentation for this struct was generated from the following file: