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 Details

    • InboundConnectedSessionListener

      public InboundConnectedSessionListener()
  • Method Details

    • connectionEstablished

      public void connectionEstablished(Object sessionIdentifier, ConnState conn)
      Report that the requested connection has been successfully established.
      Specified by:
      connectionEstablished in interface ConnectionEstablishmentListener
      Parameters:
      sessionIdentifier - identifier of the particular connection
      conn - the ConnState object from which communications streams can be obtained
    • connectionNotEstablished

      public void connectionNotEstablished(Object sessionIdentifier, Object reason)
      Report that the requested connection could not be established.
      Specified by:
      connectionNotEstablished in interface ConnectionEstablishmentListener
      Parameters:
      sessionIdentifier - identifier of the particular connection
      reason - object explaining why the connection could not be established
    • connectionClosed

      public void connectionClosed(Object sessionIdentifier, boolean fromOtherEnd)
      Report that the established connection was shut down normally.
      Specified by:
      connectionClosed in interface ConnectionEstablishmentListener
      Parameters:
      sessionIdentifier - identifier of the particular connection
      fromOtherEnd - boolean true if other end initiated the close
    • connectionLost

      public void connectionLost(Object sessionIdentifier, Object reason)
      Report that the established connection was closed abnormally.
      Specified by:
      connectionLost in interface ConnectionEstablishmentListener
      Parameters:
      sessionIdentifier - identifier of the particular connection
      reason - object explaining why the connection was lost