mi_datagram_parser.c File Reference

MI_DATAGRAM :: Command parser. More...

#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "../../str.h"
#include "../../dprint.h"
#include "../../mi/mi.h"
#include "../../mem/mem.h"
#include "../../mem/shm_mem.h"
#include "datagram_fnc.h"
#include "mi_datagram.h"
#include "mi_datagram_parser.h"

Include dependency graph for mi_datagram_parser.c:

Go to the source code of this file.

Functions

static int mi_datagram_parse_node (datagram_stream *data, str *name, str *value)
 Parse MI command example: mi_parse_node(datagram, &buf, &name, &value) returns -1 = error 0 = ok 1 = end of input.
struct mi_rootmi_datagram_parse_tree (datagram_stream *datagram)
 parsing the datagram buffer


Detailed Description

MI_DATAGRAM :: Command parser.

Definition in file mi_datagram_parser.c.


Function Documentation

static int mi_datagram_parse_node ( datagram_stream data,
str name,
str value 
) [inline, static]

Parse MI command example: mi_parse_node(datagram, &buf, &name, &value) returns -1 = error 0 = ok 1 = end of input.

Definition at line 65 of file mi_datagram_parser.c.

References datagram_str::current, DATAGRAM_SOCK_BUF_SIZE, _str::len, datagram_str::len, LM_DBG, LM_ERR, MI_ATTR_VAL_SEP1, MI_ATTR_VAL_SEP2, and _str::s.

Referenced by mi_datagram_parse_tree().

struct mi_root* mi_datagram_parse_tree ( datagram_stream datagram  )  [read]


Generated on Wed May 23 20:00:40 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6