Libtrap: Internal development docs
1.16.1
|
Functions | |
int | trap_check_buffer_content (void *buffer, uint32_t buffer_size) |
Check content of buffer, iterate over message headers. More... | |
static int | trap_read_from_buffer (trap_ctx_priv_t *ctx, uint32_t ifc_idx, const void **data, uint16_t *size, int timeout) |
int trap_check_buffer_content | ( | void * | buffer, |
uint32_t | buffer_size | ||
) |
|
inlinestatic |
Read data from buffer or receive data into buffer if buffer is empty
[in,out] | ctx | pointer to the private libtrap context data (trap_ctx_init()) |
[in] | ifc_idx | index of input interface |
[out] | data | pointer to received message |
[out] | size | size of message |
[in] | timeout | TRAP_WAIT | TRAP_NO_WAIT | timeout |