tcp_connection Struct Reference

TCP connection structure. More...

#include <tcp_conn.h>

Collaboration diagram for tcp_connection:

Collaboration graph
[legend]

Data Fields

int aliases
struct tcp_connectionc_next
struct tcp_connectionc_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_connectionid_next
struct tcp_connectionid_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

Detailed Description

TCP connection structure.

Definition at line 114 of file tcp_conn.h.


Field Documentation

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.

struct tcp_req req [read]

request data

Definition at line 120 of file tcp_conn.h.

Referenced by tls_read().

int s

socket, used by "tcp main"

Definition at line 115 of file tcp_conn.h.

Referenced by is_peer_verified().

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().

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

Definition at line 117 of file tcp_conn.h.

Referenced by tls_fix_read_conn(), and tls_read().


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

Generated on Thu May 24 18:00:48 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6