tcp_req Struct Reference

#include <tcp_conn.h>

Collaboration diagram for tcp_req:

Collaboration graph
[legend]

Data Fields

char * body
char buf [TCP_BUF_SIZE+1]
unsigned int bytes_to_go
unsigned short complete
unsigned int content_len
enum tcp_req_errors error
unsigned short has_content_len
struct tcp_reqnext
char * parsed
char * pos
char * start
enum tcp_req_states state

Detailed Description

Definition at line 82 of file tcp_conn.h.


Field Documentation

char* body

body position

Definition at line 89 of file tcp_conn.h.

char buf[TCP_BUF_SIZE+1]

bytes read so far (+0-terminator)

Definition at line 85 of file tcp_conn.h.

Referenced by tls_read().

unsigned int bytes_to_go

how many bytes we have still to read from the body

Definition at line 93 of file tcp_conn.h.

unsigned short complete

1 if one req has been fully read, 0 otherwise

Definition at line 92 of file tcp_conn.h.

unsigned int content_len

Definition at line 90 of file tcp_conn.h.

Definition at line 94 of file tcp_conn.h.

Referenced by tls_read().

unsigned short has_content_len

1 if content_length was parsed ok

Definition at line 91 of file tcp_conn.h.

struct tcp_req* next [read]

Definition at line 83 of file tcp_conn.h.

char* parsed

last parsed position

Definition at line 88 of file tcp_conn.h.

char* pos

current position in buf

Definition at line 87 of file tcp_conn.h.

Referenced by tls_read().

char* start

where the message starts, after all the empty lines are skipped

Definition at line 86 of file tcp_conn.h.

Definition at line 95 of file tcp_conn.h.


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