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

Defines the writers handlers used to actually send data through the underlaying socket descriptor.

This handler is used by:

Parameters
connectionMyQtt Connection where the data will be sent.
bufferThe buffer holding data to be sent
buffer_lenThe buffer len.
Returns
How many data was actually sent.