#include <time.h>#include "../../str.h"


Go to the source code of this file.
Data Structures | |
| struct | _content_type |
Defines | |
| #define | CT_CHARSET 2 |
| #define | CT_MSGR 4 |
| #define | CT_TYPE 1 |
| #define | MSILO_TAG "msilo-HI4U-Ah0X-bZ98-" |
Typedefs | |
| typedef struct _content_type | content_type_t |
Functions | |
| int | m_apo_escape (char *, int, char *, int) |
| int | m_build_body (str *body, time_t date, str msg, time_t sdate) |
| int | m_build_headers (str *buf, str ctype, str contact, time_t date) |
| int | m_extract_content_type (char *, int, content_type_t *, int) |
| int | ms_extract_time (str *time_str, int *time_val) |
| #define CT_CHARSET 2 |
| #define CT_MSGR 4 |
| #define CT_TYPE 1 |
| typedef struct _content_type content_type_t |
| int m_apo_escape | ( | char * | src, | |
| int | slen, | |||
| char * | dst, | |||
| int | dlen | |||
| ) |
build MESSAGE body
build MESSAGE body --- add incoming time and 'from'
expects - max buf len of the resulted body in body->len
Definition at line 243 of file msfuncs.c.
References _str::len, ms_add_date, and _str::s.
Referenced by m_dump(), and m_send_ontimer().
build MESSAGE headers
build MESSAGE headers
Add Content-Type, Contact and Date headers if they exist expects - max buf len of the resulted body in body->len
Definition at line 194 of file msfuncs.c.
References CONTACT_PREFIX, CONTACT_PREFIX_LEN, CONTACT_SUFFIX, CONTACT_SUFFIX_LEN, CRLF, CRLF_LEN, _str::len, _str::s, and timetToSipDateStr().
Referenced by m_dump(), and m_send_ontimer().
| int m_extract_content_type | ( | char * | src, | |
| int | len, | |||
| content_type_t * | ctype, | |||
| int | flag | |||
| ) |
extract content-type value
extract the value of Content-Type header
return: 0 OK ; -1 error
Definition at line 131 of file msfuncs.c.
References CT_CHARSET, CT_MSGR, CT_TYPE, _str::len, LM_DBG, _str::s, and _content_type::type.
Referenced by m_store().
| int ms_extract_time | ( | str * | time_str, | |
| int * | time_val | |||
| ) |
1.5.6