Class LnTcpServer
java.lang.Object
jmri.jmrix.loconet.loconetovertcp.LnTcpServer
Implementation of the LocoNetOverTcp LbServer Server Protocol.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddClient(ClientRxHandler handler) voidvoiddisable()voidenable()intstatic LnTcpServerGet the default server instance, creating it if necessary.intgetPort()Get the port this server is using.booleanbooleanprotected voidremoveClient(ClientRxHandler handler) boolean
-
Method Details
-
getDefault
Get the default server instance, creating it if necessary.- Returns:
- the default LnTcpServer instance
-
isEnabled
-
isSettingChanged
-
enable
-
disable
-
addStateListener
-
removeStateListener
-
getPort
Get the port this server is using.- Returns:
- the port
-
addClient
-
removeClient
-
getClientCount
-