Paraslash Audio Streaming | |
About News Download Documentation Development |
Functions used for sending/receiving the status of para_server and para_audiod. More...
Macros | |
#define | MIN_STAT_ITEM_LEN 9 /* 5 + 2 + 2, e.g. '0005 00:\n' */ |
The minimal length of a status item buffer. More... | |
Functions | |
int | for_each_stat_item (char *item_buf, size_t num_bytes, int(*item_handler)(int, char *)) |
Call a function for each complete status item of a buffer. More... | |
Functions used for sending/receiving the status of para_server and para_audiod.
#define MIN_STAT_ITEM_LEN 9 /* 5 + 2 + 2, e.g. '0005 00:\n' */ |
The minimal length of a status item buffer.
int for_each_stat_item | ( | char * | item_buf, |
size_t | num_bytes, | ||
int(*)(int, char *) | item_handler | ||
) |
Call a function for each complete status item of a buffer.
item_buf | The source buffer. |
num_bytes | The length of buf. |
item_handler | Function to call for each complete item. |
Status items are expected in the format used by parser-friendly output mode of the stat command of para_client/para_audioc.
References MIN_STAT_ITEM_LEN, PARA_WARNING_LOG, and read_size_header().