poser
A C framework for POsix SERvices
|
Event arguments for data received on a connection. More...
#include <poser/core/connection.h>
Public Member Functions | |
const uint8_t * | PSC_EADataReceived_buf (const PSC_EADataReceived *self) |
The data received. | |
size_t | PSC_EADataReceived_size (const PSC_EADataReceived *self) |
The size of the data received. | |
const char * | PSC_EADataReceived_text (const PSC_EADataReceived *self) |
The text received. | |
void | PSC_EADataReceived_markHandling (PSC_EADataReceived *self) |
Mark received data as being handled. | |
Event arguments for data received on a connection.
const uint8_t * PSC_EADataReceived_buf | ( | const PSC_EADataReceived * | self | ) |
The data received.
Get a pointer to the data received on a connection. This is used when receiving in binary mode. In text mode, it returns NULL.
self | the PSC_EADataReceived |
void PSC_EADataReceived_markHandling | ( | PSC_EADataReceived * | self | ) |
Mark received data as being handled.
Calling this makes the PSC_Connection stop receiving further data unless PSC_Connection_confirmDataReceived() is called. Each call to this function requires a corresponding call to PSC_Connection_confirmDataReceived() to actually resume receiving.
self | the PSC_EADataReceived |
size_t PSC_EADataReceived_size | ( | const PSC_EADataReceived * | self | ) |
The size of the data received.
Get the size of the received data (in bytes). This is used when receiving in binary mode. In text mode, it returns 0.
self | the PSC_EADataReceived |
const char * PSC_EADataReceived_text | ( | const PSC_EADataReceived * | self | ) |
The text received.
Get a pointer to the text received on a connection. This is used when receiving in text mode. In binary mode, it returns NULL.
self | the PSC_EADataReceived |