#include "ip_addr.h"
#include "locking.h"


Go to the source code of this file.
Definition in file tcp_conn.h.
| #define DEFAULT_TCP_CONNECT_TIMEOUT 10 |
If a connect doesn't complete in this time, timeout
Definition at line 49 of file tcp_conn.h.
| #define DEFAULT_TCP_CONNECTION_LIFETIME 120 |
TCP connection lifetime, in seconds
Definition at line 47 of file tcp_conn.h.
Referenced by tls_tcpconn_init().
| #define DEFAULT_TCP_MAX_CONNECTIONS 2048 |
Maximum number of connections
Definition at line 50 of file tcp_conn.h.
| #define DEFAULT_TCP_SEND_TIMEOUT 10 |
If a send can't write for more then 10s, timeout
Definition at line 48 of file tcp_conn.h.
| #define F_CONN_NON_BLOCKING 1 |
Definition at line 58 of file tcp_conn.h.
| #define F_CONN_REMOVED 2 |
no longer in "main" listen fd list
Definition at line 59 of file tcp_conn.h.
| #define init_tcp_req | ( | r | ) |
Definition at line 139 of file tcp_conn.h.
| #define TCP_ALIAS_HASH_SIZE 1024 |
| #define TCP_BUF_SIZE 65535 |
| #define TCP_CHILD_SELECT_TIMEOUT 2 |
the same as above but for children
Definition at line 54 of file tcp_conn.h.
| #define TCP_CHILD_TIMEOUT 5 |
After 5 seconds, the child "returns" the connection to the tcp master process
Definition at line 51 of file tcp_conn.h.
| #define TCP_CON_MAX_ALIASES 4 |
Maximum number of port aliases
Definition at line 44 of file tcp_conn.h.
Definition at line 187 of file tcp_conn.h.
| #define TCP_ID_HASH_SIZE 1024 |
Definition at line 173 of file tcp_conn.h.
| #define TCP_MAIN_SELECT_TIMEOUT 5 |
how often "tcp main" checks for timeout
Definition at line 53 of file tcp_conn.h.
| #define tcpconn_listadd | ( | head, | |||
| c, | |||||
| next, | |||||
| prev | ) |
add a tcpconn to a list list head, new element, next member, prev member
Definition at line 150 of file tcp_conn.h.
| #define tcpconn_listrm | ( | head, | |||
| c, | |||||
| next, | |||||
| prev | ) |
Value:
do{ \ if ((head)==(c)) (head)=(c)->next; \ if ((c)->next) (c)->next->prev=(c)->prev; \ if ((c)->prev) (c)->prev->next=(c)->next; \ }while(0)
Definition at line 161 of file tcp_conn.h.
| #define TCPCONN_LOCK lock_get(tcpconn_lock); |
Definition at line 169 of file tcp_conn.h.
| #define TCPCONN_UNLOCK lock_release(tcpconn_lock); |
Definition at line 170 of file tcp_conn.h.
| enum conn_cmds |
Definition at line 77 of file tcp_conn.h.
| enum tcp_conn_states |
Definition at line 72 of file tcp_conn.h.
| enum tcp_req_errors |
Definition at line 62 of file tcp_conn.h.
| enum tcp_req_states |
Definition at line 64 of file tcp_conn.h.
| static unsigned tcp_addr_hash | ( | struct ip_addr * | ip, | |
| unsigned short | port | |||
| ) | [inline, static] |
Definition at line 175 of file tcp_conn.h.
References ip_addr::addr32, ip_addr::len, LM_CRIT, TCP_ALIAS_HASH_SIZE, and ip_addr::u.
1.5.6