public static class MainGui.InboundConnectedSessionListener extends java.lang.Object implements ConnectionEstablishmentListener
AX25Stack.setConnectionRequestListener(ConnectionRequestListener)
will override this behavior.Constructor and Description |
---|
InboundConnectedSessionListener() |
Modifier and Type | Method and Description |
---|---|
void |
connectionClosed(java.lang.Object sessionIdentifier,
boolean fromOtherEnd)
Report that the established connection was shut down normally.
|
void |
connectionEstablished(java.lang.Object sessionIdentifier,
ConnState conn)
Report that the requested connection has been successfully established.
|
void |
connectionLost(java.lang.Object sessionIdentifier,
java.lang.Object reason)
Report that the established connection was closed abnormally.
|
void |
connectionNotEstablished(java.lang.Object sessionIdentifier,
java.lang.Object reason)
Report that the requested connection could not be established.
|
public void connectionEstablished(java.lang.Object sessionIdentifier, ConnState conn)
connectionEstablished
in interface ConnectionEstablishmentListener
sessionIdentifier
- identifier of the particular connectionconn
- the ConnState object from which communications streams can be obtainedpublic void connectionNotEstablished(java.lang.Object sessionIdentifier, java.lang.Object reason)
connectionNotEstablished
in interface ConnectionEstablishmentListener
sessionIdentifier
- identifier of the particular connectionreason
- object explaining why the connection could not be establishedpublic void connectionClosed(java.lang.Object sessionIdentifier, boolean fromOtherEnd)
connectionClosed
in interface ConnectionEstablishmentListener
sessionIdentifier
- identifier of the particular connectionfromOtherEnd
- boolean true if other end initiated the closepublic void connectionLost(java.lang.Object sessionIdentifier, java.lang.Object reason)
connectionLost
in interface ConnectionEstablishmentListener
sessionIdentifier
- identifier of the particular connectionreason
- object explaining why the connection was lost