|
Ripples 1.0
High Performant Software Architecture For Transaction Processing
|
#include <conn.h>

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_t * | queries |
| 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 |
Structure holds data specific to TCP listener connection.
| struct sockaddr_storage conn_tcp_s::client_ip |
TCP connection client IP.
| struct timespec conn_tcp_s::end_time |
Time TCP connection was established.
| struct sockaddr_storage conn_tcp_s::local_ip |
TCP connection local IP.
| query_t* conn_tcp_s::queries |
Array where queries are parsed into.
| size_t conn_tcp_s::queries_count |
Number of populated elements in queries array.
| size_t conn_tcp_s::queries_size |
Number of elements in queries array.
| size_t conn_tcp_s::queries_total_count |
Number of queries received and processed over this TCP connection.
| size_t conn_tcp_s::query_write_index |
Element in query array to start write from.
| unsigned char* conn_tcp_s::read_buffer |
Read buffer.
| size_t conn_tcp_s::read_buffer_len |
Length of data in read buffer.
| size_t conn_tcp_s::read_buffer_size |
Read buffer size.
| struct timespec conn_tcp_s::start_time |
Time TCP connection was established.
| conn_tcp_state_t conn_tcp_s::state |
State of this TCP connection.
| size_t conn_tcp_s::tcp_keepalive |
TCP keepalive as advertised in EDNS tcp-keepalive.
| struct timespec conn_tcp_s::timeout |
Time when this connection will time out. Which timeout is in effect is governed by connection state.
| 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.