Interface ConnectionRequestListener

All Known Implementing Classes:
MainGui
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ConnectionRequestListener
This interface defines a means by which an arbitrary handler can choose to accept an inbound AX.25 connected-mode session request.
Author:
Andrew Pavlin, KA2DDO
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    acceptInbound(ConnState state, AX25Callsign originator, Connector port)
    Decide whether to accept the specified inbound AX.25 connected-mode session request.
  • Method Details

    • acceptInbound

      boolean acceptInbound(ConnState state, AX25Callsign originator, Connector port)
      Decide whether to accept the specified inbound AX.25 connected-mode session request. Note that the state is not fully connected at the point of this call (so the called code can choose to reject it), so the called code should register a ConnectionEstablishmentListener on the ConnState to be informed when the connection is fully established if the called code chooses to accept the connection request.
      Parameters:
      state - ConnState object describing the session being built
      originator - AX25Callsign of the originating station
      port - Connector through which the request was received
      Returns:
      boolean true if request should be accepted, false if not
      See Also: