Ripples 1.0
High Performant Software Architecture For Transaction Processing
Loading...
Searching...
No Matches
conn_tcp_s Struct Reference

#include <conn.h>

Collaboration diagram for conn_tcp_s:

Data Fields

struct sockaddr_storage client_ip
 
struct sockaddr_storage local_ip
 
unsigned char * read_buffer
 
size_t read_buffer_size
 
size_t read_buffer_len
 
size_t query_write_index
 
size_t write_index
 
query_tqueries
 
size_t queries_size
 
size_t queries_count
 
size_t queries_total_count
 
size_t tcp_keepalive
 
conn_tcp_state_t state
 
struct timespec start_time
 
struct timespec timeout
 
struct timespec end_time
 

Detailed Description

Structure holds data specific to TCP listener connection.

Field Documentation

◆ client_ip

struct sockaddr_storage conn_tcp_s::client_ip

TCP connection client IP.

◆ end_time

struct timespec conn_tcp_s::end_time

Time TCP connection was established.

◆ local_ip

struct sockaddr_storage conn_tcp_s::local_ip

TCP connection local IP.

◆ queries

query_t* conn_tcp_s::queries

Array where queries are parsed into.

◆ queries_count

size_t conn_tcp_s::queries_count

Number of populated elements in queries array.

◆ queries_size

size_t conn_tcp_s::queries_size

Number of elements in queries array.

◆ queries_total_count

size_t conn_tcp_s::queries_total_count

Number of queries received and processed over this TCP connection.

◆ query_write_index

size_t conn_tcp_s::query_write_index

Element in query array to start write from.

◆ read_buffer

unsigned char* conn_tcp_s::read_buffer

Read buffer.

◆ read_buffer_len

size_t conn_tcp_s::read_buffer_len

Length of data in read buffer.

◆ read_buffer_size

size_t conn_tcp_s::read_buffer_size

Read buffer size.

◆ start_time

struct timespec conn_tcp_s::start_time

Time TCP connection was established.

◆ state

conn_tcp_state_t conn_tcp_s::state

State of this TCP connection.

◆ tcp_keepalive

size_t conn_tcp_s::tcp_keepalive

TCP keepalive as advertised in EDNS tcp-keepalive.

◆ timeout

struct timespec conn_tcp_s::timeout

Time when this connection will time out. Which timeout is in effect is governed by connection state.

◆ write_index

size_t conn_tcp_s::write_index

Index in query element write buffer where to start write from. This is used in case multiple write() calls are needed to write all data in buffer.


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