Its syntax is defined in RFC 3261 as follows:
Content-Length = ( "Content-Length" / "l" ) HCOLON 1*DIGIT
The parsed Content-Length header is stored in sip_content_length_t structure.
|
|
Initializer for structure sip_content_length_t. A static sip_content_length_t structure for Content-Length header must be initialized with the SIP_CONTENT_LENGTH_INIT() macro. For instance, |
|
|
Tag list item for pointer to a Content-Length header structure sip_content_length_t. The SIPTAG_CONTENT_LENGTH() macro is used to include a tag item with a pointer to a sip_content_length_t structure in a tag list.
|
|
|
Tag list item for string with Content-Length header value. The SIPTAG_CONTENT_LENGTH_STR() macro is used to include a tag item with a string containing value of a sip_content_length_t header in a tag list.
The corresponding tag taking reference parameter is SIPTAG_CONTENT_LENGTH_STR_REF(). |
|
|
The structure sip_content_length_t contains representation of SIP Content-Length header. The sip_content_length_t is defined as follows: typedef struct sip_content_length_s { sip_common_t l_common[1]; // Common fragment info sip_error_t *l_next; // Dummy link to next uint32_t l_length; // Message body length in bytes } sip_content_length_t; |
|
||||||||||||
|
Copy a list of Content-Length header header structures sip_content_length_t.
The function sip_content_length_copy() copies a header structure hdr. If the header structure hdr contains a reference (
|
|
||||||||||||
|
Create a Content-Length header object. Create a Content-Length header object with the value n. The memory for the header is allocated from the memory home home.
|
|
||||||||||||
|
Duplicate a list of Content-Length header header structures sip_content_length_t.
Duplicate a header structure hdr. If the header structure hdr contains a reference (
|
|
||||||||||||||||
|
Make a Content-Length header from formatting result. Make a new sip_content_length_t object using formatting result as its value. The function first prints the arguments according to the format fmt specified. Then it allocates a new header structure, and parses the formatting result to the structure sip_content_length_t.
|
|
|
Initialize a structure sip_content_length_t. An sip_content_length_t structure for Content-Length header can be initialized with the sip_content_length_init() function/macro. For instance, |
|
||||||||||||
|
Make a Content-Length header structure sip_content_length_t. The function sip_content_length_make() makes a new sip_content_length_t header structure. It allocates a new header structure, and decodes the string s as the value of the structure.
|
|
|
Test if header object is instance of sip_content_length_t. Check if the header class is an instance of Content-Length header object and return true (nonzero), otherwise return false (zero).
|
|
|
Header class for Content-Length header. The header class sip_content_length_class defines how a SIP Content-Length header is parsed and printed. It also contains methods used by SIP parser and other functions to manipulate the sip_content_length_t header structure. |