typedef int(* MyQttReceive)(MyQttConn *connection, unsigned char *buffer, int buffer_len)

Defines the readers handlers used to actually received data from the underlying socket descriptor.

This handler is used by:

Parameters
connectionThe MyQtt connection where the data will be received.
bufferThe buffer reference used as container for data received.
buffer_lenThe buffer len use to know the limits of the buffer.
Returns
How many data was actually received.