Package org.ka2ddo.ax25
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.
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 TypeMethodDescriptionboolean
acceptInbound
(ConnState state, AX25Callsign originator, Connector port) Decide whether to accept the specified inbound AX.25 connected-mode session request.
-
Method Details
-
acceptInbound
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 aConnectionEstablishmentListener
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 builtoriginator
- AX25Callsign of the originating stationport
- Connector through which the request was received- Returns:
- boolean true if request should be accepted, false if not
- See Also:
-