public class UdpSubmitConnector extends TNCConnector implements TransmittingConnector, NeedsAppVersionInfoIfc
PortConnector.PortStatsType
Connector.ConnectorType, Connector.PortStats
Modifier and Type | Field and Description |
---|---|
static java.util.Set<PortConfig.Fields> |
BLANK_FIELDS
Set of PortConfig field identifiers for fields that should not be copied from another system and should therefore be
blanked out when copying configuration files.
|
static java.lang.String |
CONFIG_GUI
Specify the fully-qualified platform-wildcarded class name for the editor for AprsIsConnector.
|
static java.util.Map<PortConfig.Fields,PortConfig.RequireHints> |
REQ_FIELDS
List of PortConfig field identifiers that are mandated for this port type to work, and the ResourceBundle key to
prompt for a value if missing.
|
static java.lang.String |
TYPE_NAME
Specify the PortConnector type name for UdpSubmitConnector.
|
RF_SEND_TIME_PER_BYTE_1200, RF_SEND_TIME_PER_BYTE_300, RF_SEND_TIME_PER_BYTE_9600, timeslotTimer
currentCfg, portConfig
CAP_ADSB, CAP_FAST_RF_9600, CAP_FULL_DUPLEX, CAP_GPS_DATA, CAP_HF, CAP_IGATE, CAP_KENWOOD_CMD, CAP_OPENTRAC, CAP_OTHER_TRANSPORT, CAP_RAW_AX25, CAP_RCV_PACKET_DATA, CAP_RF, CAP_SUBCLIENT, CAP_WAYPOINT_SENDER, CAP_WEATHER, CAP_XMT_PACKET_DATA, stats
Constructor and Description |
---|
UdpSubmitConnector()
Create an uninitialized instance of UdpSubmitConnector.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Shut down this port connection.
|
void |
configure(PortConfig config)
Update the configuration of the connector to match the updated
setup.
|
static void |
fillinConfigDefaults(PortConfig.Cfg cfg)
Set the correct defaults for a port in process of being created.
|
int |
getAcceptableProtocolsMask()
Get the bitmask of AX.25 protocols supported by this port.
|
int |
getCapabilities()
Specify what capabilities a port of this type has.
|
java.net.InetSocketAddress |
getCurrentConnectAddress()
Return the address of the remote APRS-IS server this port is connected to.
|
boolean |
isOpen()
Reports whether this Connector has an open connection to its port.
|
void |
sendFrame(AX25Frame frame)
Transmit an AX.25 frame through this port.
|
void |
setAppVersion(java.lang.String name,
java.lang.String version)
Sets the name and version of the containing application.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
convertTNC2FormatToAX25Frame, getBitRate, getCallsign, getPortAddress, getRFSendTimePerByte, setPortAddress
addPortEventListener, createPort, fillinConfigDefaultsForType, fireFailed, fireReceiving, fireTransmitting, getCollectedStatsTypes, getPortConfig, getPortConnectorClass, getPortConnectorInactivityTimer, getStats, portConnectorClasses, portTypeNames, registerPortConnectorType, removePortEventListener, setPortConfig
addFrameListener, finalize, fireConsumeFrame, fireConsumeFrame, getStats, getType, hasCapability, removeFrameListener
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCallsign, getStats, hasCapability
public static final java.lang.String TYPE_NAME
public static final java.lang.String CONFIG_GUI
public static final java.util.Set<PortConfig.Fields> BLANK_FIELDS
public static final java.util.Map<PortConfig.Fields,PortConfig.RequireHints> REQ_FIELDS
public UdpSubmitConnector()
public static void fillinConfigDefaults(PortConfig.Cfg cfg)
cfg
- PortConfig.Cfg whose defaults should be adjustedpublic void setAppVersion(java.lang.String name, java.lang.String version)
setAppVersion
in interface NeedsAppVersionInfoIfc
name
- String name of the application (cannot contain whitespace)version
- String version of the application (cannot contain whitespace)public void configure(PortConfig config) throws java.io.IOException, java.lang.IllegalArgumentException
configure
in class PortConnector
config
- PortConfig defining new port settingsjava.io.IOException
- if interface changes could not be appliedjava.lang.IllegalArgumentException
- if type information is invalid for
changing the settings of this PortConnectorpublic void sendFrame(AX25Frame frame) throws java.io.IOException
sendFrame
in interface TransmittingConnector
frame
- AX25Frame object to transmitjava.io.IOException
- if transmit failed for any reason other than a receive-only portpublic boolean isOpen()
isOpen
in interface TransmittingConnector
isOpen
in class Connector
public void close()
public int getCapabilities()
getCapabilities
in interface TransmittingConnector
getCapabilities
in class Connector
Connector.CAP_XMT_PACKET_DATA
,
Connector.CAP_IGATE
public java.lang.String toString()
toString
in class java.lang.Object
public java.net.InetSocketAddress getCurrentConnectAddress()
public int getAcceptableProtocolsMask()
getAcceptableProtocolsMask
in interface TransmittingConnector
getAcceptableProtocolsMask
in class TNCConnector