Package jmri.jmris
Class JmriServer
java.lang.Object
jmri.jmris.JmriServer
- Direct Known Subclasses:
JmriSRCPServer,JsonServer,SimpleServer
This is the main JMRI Server implementation.
It starts a thread for each client.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class(package private) class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ArrayList<JmriServer.ClientListener>protected ServerSocketprotected intprotected ZeroConfServiceprotected ShutDownTaskprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voidvoidhandleClient(DataInputStream inStream, DataOutputStream outStream) voidstart()voidstop()voidstopClient(DataInputStream inStream, DataOutputStream outStream)
-
Field Details
-
portNo
-
timeout
-
connectSocket
-
service
-
shutDownTask
-
connectedClientThreads
-
-
Constructor Details
-
JmriServer
public JmriServer() -
JmriServer
-
JmriServer
-
-
Method Details
-
start
-
advertise
-
advertise
-
advertise
-
stop
-
handleClient
- Throws:
IOException
-
stopClient
- Throws:
IOException
-