public interface ConnectionEventListener
Connection.startDataTransfer(ConnectionEventListener, int)
or
Connection.waitForStartDT(ConnectionEventListener, int)
method. Incoming ASDUs are queued so that
newASdu(ASdu)
is never called simultaneously for the same connection.Modifier and Type | Method and Description |
---|---|
void |
connectionClosed(java.io.IOException e)
Invoked when an IOException occurred while listening for incoming ASDUs.
|
void |
newASdu(ASdu aSdu)
Invoked when a new ASDU arrives.
|
void newASdu(ASdu aSdu)
aSdu
- the ASDU that arrived.void connectionClosed(java.io.IOException e)
Connection
that feeds this listener was automatically closed and can no longer be used to send commands
or receive ASDUs.e
- the exception that occurred.