#include <stdio.h>
#include <stdarg.h>
#include <errno.h>


Go to the source code of this file.
Defines | |
| #define | FIFO_REPLY_RETRIES 4 |
| how patient is openser with FIFO clients not awaiting a reply? default = 4 x 80ms = 0.32 sec | |
| #define | FIFO_REPLY_WAIT 80000 |
Functions | |
| static int | mi_fifo_reply (FILE *stream, char *reply_fmt,...) |
| void | mi_fifo_server (FILE *fifostream) |
| The actual MI Fifo Server. | |
| FILE * | mi_init_fifo_server (char *fifo_name, int mode, int uid, int gid, char *fifo_reply_dir) |
| Initialize MI Fifo server. | |
| int | mi_read_line (char *b, int max, FILE *stream, int *read) |
| Read input on fifo. | |
Definition in file fifo_fnc.h.
| #define FIFO_REPLY_RETRIES 4 |
how patient is openser with FIFO clients not awaiting a reply? default = 4 x 80ms = 0.32 sec
Definition at line 44 of file fifo_fnc.h.
Referenced by mi_open_reply_pipe().
| #define FIFO_REPLY_WAIT 80000 |
| static int mi_fifo_reply | ( | FILE * | stream, | |
| char * | reply_fmt, | |||
| ... | ||||
| ) | [inline, static] |
Definition at line 54 of file fifo_fnc.h.
References LM_ERR.
Referenced by fifo_close_async(), mi_fifo_server(), mi_write_tree(), and recur_write_tree().
| void mi_fifo_server | ( | FILE * | fifostream | ) |
The actual MI Fifo Server.
Definition at line 401 of file fifo_fnc.c.
References mi_root::async_hdl, build_async_handler(), mi_cmd::f, file, mi_cmd::flags, free_async_handler(), free_mi_tree(), get_reply_filename(), LM_DBG, LM_ERR, lookup_mi_cmd(), MAX_MI_FIFO_BUFFER, MI_ASYNC_RPL_FLAG, mi_buf, MI_CMD_SEPARATOR, mi_do_consume, mi_fifo_reply(), MI_NO_INPUT_FLAG, mi_open_reply, mi_parse_tree(), mi_read_line(), MI_ROOT_ASYNC_RPL, mi_write_tree(), NULL, and run_mi_cmd().
Referenced by fifo_process().
| FILE* mi_init_fifo_server | ( | char * | fifo_name, | |
| int | mode, | |||
| int | uid, | |||
| int | gid, | |||
| char * | fifo_reply_dir | |||
| ) |
Initialize MI Fifo server.
Definition at line 63 of file fifo_fnc.c.
References LM_DBG, LM_ERR, MAX_MI_FIFO_BUFFER, MAX_MI_FILENAME, mi_buf, mi_fifo_read, mi_fifo_write, NULL, pkg_malloc, reply_fifo_len, and reply_fifo_s.
Referenced by fifo_process().
| int mi_read_line | ( | char * | b, | |
| int | max, | |||
| FILE * | stream, | |||
| int * | read | |||
| ) |
Read input on fifo.
Definition at line 259 of file fifo_fnc.c.
References len, LM_ERR, and NULL.
Referenced by mi_fifo_server(), mi_parse_node(), and mi_parse_tree().
1.5.6