public interface Connection
Generally, nodes send messages by delivering them to Connections.
Modifier and Type | Interface and Description |
---|---|
static class |
Connection.ConnectionListener
Internal listener class definition
|
Modifier and Type | Method and Description |
---|---|
void |
put(Message msg,
Connection sender)
Put a message to this connection.
|
void |
registerStartNotification(Connection.ConnectionListener c)
Register to be informed when this connection is ready
to accept messages.
|
void put(Message msg, Connection sender)
msg
- message to sendsender
- Node that is sending the message, used
for tracking, logging, etc.
(This models a two-ended connection to whatever
communications link is used)void registerStartNotification(Connection.ConnectionListener c)
c
- callback object to invokeCopyright © 2017 The OpenLCB Group. All rights reserved.