Callback for messages received by the transport.
Return a negative value to cancel the network operation.
The message from the transport
The length of the message
Payload provided by the caller
0 on success or an error code