This file contains implementation of basic headers, that is, generic headers like Subject or Organization containing non-structured text only, numeric headers like Content-Length or Max-Forwards containing only an 32-bit unsigned integer, or token list headers like Supported or Allow.
#include "config.h"
#include <sofia-sip/su_alloc.h>
#include <sofia-sip/msg.h>
#include <sofia-sip/bnf.h>
#include <sofia-sip/msg_parser.h>
#include <sofia-sip/msg_header.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdio.h>
#include <stdarg.h>
#include <limits.h>
Include dependency graph for msg_basic.c:
Defines | |
#define | CRLF_TEST(s) |
Calculate length of line ending (0, 1 or 2). | |
Functions | |
msg_payload_t * | msg_payload_create (su_home_t *home, void const *data, usize_t len) |
Create a MIME payload. | |
issize_t | msg_payload_d (su_home_t *home, msg_header_t *h, char *s, isize_t slen) |
Parse payload. | |
issize_t | msg_separator_d (su_home_t *home, msg_header_t *h, char *s, isize_t slen) |
Parse a separator line. | |
issize_t | msg_separator_e (char b[], isize_t bsiz, msg_header_t const *h, int flags) |
Encode a separator line. | |
Variables | |
msg_hclass_t | msg_error_class [] |
Header class for erroneous headers. | |
msg_hclass_t | msg_unknown_class [] |
Header class for unknown headers. | |
msg_hclass_t | msg_payload_class [1] |
Header class for message payload. | |
msg_hclass_t | msg_separator_class [] |
Header class for separator line between headers and payload. |