#include <stdio.h>#include <string.h>#include <netinet/in.h>#include "../../mem/mem.h"#include "../../parser/msg_parser.h"#include "../../parser/parse_uri.h"#include "../../dprint.h"#include "encode_to_body.h"#include "encode_uri.h"#include "encode_header.h"#include "encode_parameters.h"#include "xaddress.h"

Go to the source code of this file.
Defines | |
| #define | _GNU_SOURCE |
Functions | |
| int | dump_to_body_test (char *hdr, int hdrlen, unsigned char *payload, int paylen, FILE *fd, char segregationLevel) |
| int | encode_to_body (char *hdrstart, int hdrlen, struct to_body *body, unsigned char *where) |
| int | print_encoded_to_body (FILE *fd, char *hdr, int hdrlen, unsigned char *payload, int paylen, char *prefix) |
| #define _GNU_SOURCE |
Definition at line 39 of file encode_to_body.c.
| int dump_to_body_test | ( | char * | hdr, | |
| int | hdrlen, | |||
| unsigned char * | payload, | |||
| int | paylen, | |||
| FILE * | fd, | |||
| char | segregationLevel | |||
| ) |
dumps to FD a NBO int which is the header length, the header, an NBO int which is the payload length, and the payload.
hdr is the header, hdrlen is the header length, payload is the payload, paylen is the payload length, fd is the file descriptor to which to dump, segregationLevel is wether only URIS must be dumped or all the header code.
return 0 on success, <0 on error
Definition at line 147 of file encode_to_body.c.
References dump_standard_hdr_test(), HAS_DISPLAY_F, HAS_TAG_F, JUNIT, ONLY_URIS, and print_uri_junit_tests().
Referenced by dump_headers_test().
| int encode_to_body | ( | char * | hdrstart, | |
| int | hdrlen, | |||
| struct to_body * | body, | |||
| unsigned char * | where | |||
| ) |
Definition at line 68 of file encode_to_body.c.
References to_body::display, encode_parameters(), encode_uri2(), HAS_DISPLAY_F, HAS_TAG_F, _str::len, LM_ERR, to_body::param_lst, parse_uri(), _str::s, to_body::tag_value, and to_body::uri.
Referenced by encode_header().
| int print_encoded_to_body | ( | FILE * | fd, | |
| char * | hdr, | |||
| int | hdrlen, | |||
| unsigned char * | payload, | |||
| int | paylen, | |||
| char * | prefix | |||
| ) |
Definition at line 106 of file encode_to_body.c.
References HAS_DISPLAY_F, HAS_TAG_F, print_encoded_parameters(), and print_encoded_uri().
Referenced by print_encoded_header().
1.5.6