MyQttReceive myqtt_conn_set_receive_handler ( MyQttConn connection,
MyQttReceive  receive_handler 
)

Allows to configure receive handler use to actually receive data from remote peer.

Parameters
connectionThe connection where the receive handler will be set.
receive_handlerThe receive handler to be set.
Returns
Returns current receive handler set or NULL if it fails.