encode_to_body.h File Reference

#include "../../str.h"
#include "../../parser/msg_parser.h"

Include dependency graph for encode_to_body.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define HAS_DISPLAY_F   0x01
#define HAS_OTHERPAR_F   0x04
#define HAS_TAG_F   0x02
#define MAX_XHDR_LEN   255

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 HAS_DISPLAY_F   0x01

Definition at line 26 of file encode_to_body.h.

Referenced by dump_to_body_test(), encode_to_body(), and print_encoded_to_body().

#define HAS_OTHERPAR_F   0x04

Definition at line 28 of file encode_to_body.h.

#define HAS_TAG_F   0x02

Definition at line 27 of file encode_to_body.h.

Referenced by dump_to_body_test(), encode_to_body(), and print_encoded_to_body().

#define MAX_XHDR_LEN   255

Definition at line 25 of file encode_to_body.h.


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