Package jmri.jmrix.bidib.tcpserver
Class TcpServer
java.lang.Object
jmri.jmrix.bidib.tcpserver.TcpServer
JMRI Implementation of the BiDiBOverTcp Server Protocol.
Starting and Stopping of the server is delegated to the
NetPlainTcpBidib class.
There is one server for each BiDiB connection and they must have different port numbers,
so the client is connected to a specific BiDiB connection.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final String(package private) NetPlainTcpBidib(package private) static final String(package private) final ResourceBundle(package private) ServerSocket(package private) ZeroConfService(package private) static final String(package private) boolean(package private) boolean(package private) Runnable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisable()voidenable()booleanintGet access to the system connection memo associated with this traffic controller.booleanbooleanvoidvoidsetAutoStart(boolean start) voidsetPortNumber(int port) voidvoid
-
Field Details
-
rb
-
netPlainTcpBidib
-
serverSocket
-
settingsLoaded
boolean settingsLoaded -
settingsChanged
boolean settingsChanged -
shutDownTask
-
service
-
AUTO_START_KEY
- See Also:
-
PORT_NUMBER_KEY
- See Also:
-
SETTINGS_FILE_NAME
- See Also:
-
-
Constructor Details
-
TcpServer
-
-
Method Details
-
saveSettings
-
getAutoStart
-
setAutoStart
-
getPortNumber
-
setPortNumber
-
isEnabled
-
isSettingChanged
-
enable
-
disable
-
updateServerStateListener
-
updateClientStateListener
-
getSystemConnectionMemo
Get access to the system connection memo associated with this traffic controller.- Returns:
- associated systemConnectionMemo object
-