encode_to_body.c File Reference

#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"

Include dependency graph for encode_to_body.c:

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 Documentation

#define _GNU_SOURCE

Definition at line 39 of file encode_to_body.c.


Function Documentation

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 
)

int print_encoded_to_body ( FILE *  fd,
char *  hdr,
int  hdrlen,
unsigned char *  payload,
int  paylen,
char *  prefix 
)


Generated on Wed May 23 06:01:02 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6