Package org.ka2ddo.yaac.gui
Class MainGui.InboundConnectedSessionListener
java.lang.Object
org.ka2ddo.yaac.gui.MainGui.InboundConnectedSessionListener
- All Implemented Interfaces:
ConnectionEstablishmentListener
- Enclosing class:
- MainGui
public static class MainGui.InboundConnectedSessionListener
extends Object
implements ConnectionEstablishmentListener
This class handles an inbound AX.25 connection as a keyboard-to-keyboard
Chat session, just as in the old packet radio days. Note that any plugin that
calls
AX25Stack.setConnectionRequestListener(ConnectionRequestListener)
will override this behavior.- Author:
- Andrew Pavlin, KA2DDO
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
connectionClosed
(Object sessionIdentifier, boolean fromOtherEnd) Report that the established connection was shut down normally.void
connectionEstablished
(Object sessionIdentifier, ConnState conn) Report that the requested connection has been successfully established.void
connectionLost
(Object sessionIdentifier, Object reason) Report that the established connection was closed abnormally.void
connectionNotEstablished
(Object sessionIdentifier, Object reason) Report that the requested connection could not be established.
-
Constructor Details
-
InboundConnectedSessionListener
public InboundConnectedSessionListener()
-
-
Method Details
-
connectionEstablished
Report that the requested connection has been successfully established.- Specified by:
connectionEstablished
in interfaceConnectionEstablishmentListener
- Parameters:
sessionIdentifier
- identifier of the particular connectionconn
- the ConnState object from which communications streams can be obtained
-
connectionNotEstablished
Report that the requested connection could not be established.- Specified by:
connectionNotEstablished
in interfaceConnectionEstablishmentListener
- Parameters:
sessionIdentifier
- identifier of the particular connectionreason
- object explaining why the connection could not be established
-
connectionClosed
Report that the established connection was shut down normally.- Specified by:
connectionClosed
in interfaceConnectionEstablishmentListener
- Parameters:
sessionIdentifier
- identifier of the particular connectionfromOtherEnd
- boolean true if other end initiated the close
-
connectionLost
Report that the established connection was closed abnormally.- Specified by:
connectionLost
in interfaceConnectionEstablishmentListener
- Parameters:
sessionIdentifier
- identifier of the particular connectionreason
- object explaining why the connection was lost
-