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

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_root * | mi_datagram_parse_tree (datagram_stream *datagram) |
| parsing the datagram buffer | |
Definition in file mi_datagram_parser.c.
| 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] |
parsing the datagram buffer
Definition at line 258 of file mi_datagram_parser.c.
References add_mi_node_child(), datagram_str::current, free_mi_tree(), init_mi_tree(), datagram_str::len, _str::len, LM_DBG, LM_ERR, mi_datagram_parse_node(), mi_node::name, mi_root::node, root, _str::s, and mi_node::value.
Referenced by mi_datagram_server().
1.5.6