#include <tcp_conn.h>

Data Fields | |
| int | aliases |
| struct tcp_connection * | c_next |
| struct tcp_connection * | c_prev |
| struct tcp_conn_alias | con_aliases [TCP_CON_MAX_ALIASES] |
| void * | extra_data |
| int | fd |
| int | flags |
| int | id |
| unsigned | id_hash |
| struct tcp_connection * | id_next |
| struct tcp_connection * | id_prev |
| unsigned int | lifetime |
| struct receive_info | rcv |
| volatile int | refcnt |
| struct tcp_req | req |
| int | s |
| enum tcp_conn_states | state |
| unsigned int | timeout |
| enum sip_protos | type |
| gen_lock_t | write_lock |
Definition at line 114 of file tcp_conn.h.
| int aliases |
Number of aliases, at least 1
Definition at line 134 of file tcp_conn.h.
struct tcp_connection* c_next [read] |
Child next (use locally)
Definition at line 131 of file tcp_conn.h.
struct tcp_connection* c_prev [read] |
Child prev (use locally
Definition at line 132 of file tcp_conn.h.
struct tcp_conn_alias con_aliases[TCP_CON_MAX_ALIASES] [read] |
Aliases for this connection
Definition at line 133 of file tcp_conn.h.
| void* extra_data |
extra data associated to the connection, 0 for tcp
Definition at line 125 of file tcp_conn.h.
Referenced by _tls_read(), get_ssl(), is_peer_verified(), tls_accept(), tls_connect(), tls_shutdown(), tls_tcpconn_clean(), tls_tcpconn_init(), tls_update_fd(), and tls_write().
| int fd |
used only by "children", don't modify it! private data!
Definition at line 116 of file tcp_conn.h.
Referenced by is_peer_verified(), tls_fix_read_conn(), and tls_read().
| int flags |
connection related flags
Definition at line 123 of file tcp_conn.h.
Referenced by tls_tcpconn_init().
| int id |
id (unique!) used to retrieve a specific connection when reply-ing
Definition at line 118 of file tcp_conn.h.
Referenced by is_peer_verified().
| unsigned id_hash |
hash index in the id_hash
Definition at line 128 of file tcp_conn.h.
struct tcp_connection* id_next [read] |
next in id hash table
Definition at line 129 of file tcp_conn.h.
struct tcp_connection* id_prev [read] |
prev in id hash table
Definition at line 130 of file tcp_conn.h.
| unsigned int lifetime |
lifetime to be set for the connection
Definition at line 127 of file tcp_conn.h.
struct receive_info rcv [read] |
src & dst ip, ports, proto a.s.o
Definition at line 119 of file tcp_conn.h.
Referenced by tls_accept(), tls_connect(), and tls_tcpconn_init().
| volatile int refcnt |
Definition at line 121 of file tcp_conn.h.
| int s |
socket, used by "tcp main"
Definition at line 115 of file tcp_conn.h.
Referenced by is_peer_verified().
| enum tcp_conn_states state |
connection state
Definition at line 124 of file tcp_conn.h.
Referenced by _tls_read(), tls_accept(), tls_blocking_write(), tls_connect(), tls_fix_read_conn(), tls_shutdown(), tls_tcpconn_init(), and tls_write().
| unsigned int timeout |
connection timeout, after this it will be removed
Definition at line 126 of file tcp_conn.h.
Referenced by tls_tcpconn_init().
| enum sip_protos type |
PROTO_TCP or a protocol over it, e.g. TLS
Definition at line 122 of file tcp_conn.h.
Referenced by get_cur_connection(), tls_tcpconn_init(), and tlsops_alt().
| gen_lock_t write_lock |
1.5.6