Package jmri.jmris.simpleserver
Class SimpleServer
- java.lang.Object
-
- jmri.jmris.JmriServer
-
- jmri.jmris.simpleserver.SimpleServer
-
public class SimpleServer extends JmriServer
This is an implementation of a simple server for JMRI. There is currently no handshaking in this server. You may just start sending commands.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.jmris.JmriServer
JmriServer.ClientListener
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.util.ResourceBundle
rb
-
Fields inherited from class jmri.jmris.JmriServer
connectedClientThreads, connectSocket, portNo, service, shutDownTask, timeout
-
-
Constructor Summary
Constructors Constructor Description SimpleServer()
SimpleServer(int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
advertise()
void
handleClient(java.io.DataInputStream inStream, java.io.DataOutputStream outStream)
-
Methods inherited from class jmri.jmris.JmriServer
advertise, advertise, start, stop, stopClient
-
-
-
-
Field Detail
-
rb
static java.util.ResourceBundle rb
-
-
Constructor Detail
-
SimpleServer
public SimpleServer()
-
SimpleServer
public SimpleServer(int port)
-
-
Method Detail
-
advertise
protected void advertise()
- Overrides:
advertise
in classJmriServer
-
handleClient
public void handleClient(java.io.DataInputStream inStream, java.io.DataOutputStream outStream) throws java.io.IOException
- Overrides:
handleClient
in classJmriServer
- Throws:
java.io.IOException
-
-