jmri.jmris
Class JmriServer

java.lang.Object
  extended by jmri.jmris.JmriServer
Direct Known Subclasses:
JmriSRCPServer, SimpleServer

public class JmriServer
extends Object

This is the main JMRI Server implementation. It starts a thread for each client.


Field Summary
protected  ServerSocket connectSocket
           
protected  int portNo
           
protected  ZeroConfService service
           
 
Constructor Summary
JmriServer()
           
JmriServer(int port)
           
 
Method Summary
protected  void advertise()
           
 void handleClient(DataInputStream inStream, DataOutputStream outStream)
           
static JmriServer instance()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

portNo

protected int portNo

connectSocket

protected ServerSocket connectSocket

service

protected ZeroConfService service
Constructor Detail

JmriServer

public JmriServer()

JmriServer

public JmriServer(int port)
Method Detail

instance

public static JmriServer instance()

start

public void start()

advertise

protected void advertise()

stop

public void stop()

handleClient

public void handleClient(DataInputStream inStream,
                         DataOutputStream outStream)
                  throws IOException
Throws:
IOException


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads