Package org.ka2ddo.yaac.io
Interface HasRemoteAppIfc
- All Known Implementing Classes:
AprsIsConnector
,SslAprsIsConnector
public interface HasRemoteAppIfc
This interface defines a
PortConnector
that connects to a remote
application on another system.- Author:
- Andrew Pavlin, KA2DDO
-
Method Summary
Modifier and TypeMethodDescriptionReturn the address of the remote application this port is connected to.long
Return the time (in milliseconds since epoch) of when the connection to the remote application was opened.String[]
Get the application and version thereof of the remote application this Connector is connected to.
-
Method Details
-
getRemoteAppAndVersion
String[] getRemoteAppAndVersion()Get the application and version thereof of the remote application this Connector is connected to.- Returns:
- Strings of remote application name and version, or null if it is not known
-
getCurrentConnectAddress
InetSocketAddress getCurrentConnectAddress()Return the address of the remote application this port is connected to.- Returns:
- InetSocketAddress of remote server, or null if port is not open
-
getPortOpenTime
long getPortOpenTime()Return the time (in milliseconds since epoch) of when the connection to the remote application was opened.- Returns:
- time in milliseconds, or 0 if not open
-