Interface ConnectionEstablishmentListener

All Known Implementing Classes:
MainGui.InboundConnectedSessionListener

public interface ConnectionEstablishmentListener
This interface provides an asynchronous callback for requests to open a AX.25 I-frame connection to another station. Each of these methods can only be called once for any given session.
Author:
Andrew Pavlin, KA2DDO
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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.
  • Method Details

    • connectionEstablished

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

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

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

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