Callback for messages recieved 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