Sending and receiving messages
As usual with the Generic Connection Framework, the message sending and receiving functionality is implemented by a Connection interface, in this case MessageConnection.
This method will be called by the platform when
an incoming message arrives to a MessageConnection
where the application has registered this listener
object.
Receives a message
If there are no Messages for this Connection waiting,
this message will block until a message for this Connection
is received, or the Connection is closed.