jmri.jmrix.loconet.loconetovertcp
Class ClientRxHandler

java.lang.Object
  extended by java.lang.Thread
      extended by jmri.jmrix.loconet.loconetovertcp.ClientRxHandler
All Implemented Interfaces:
Runnable, EventListener, LocoNetListener

public class ClientRxHandler
extends Thread
implements LocoNetListener

Implementation of the LocoNetOverTcp LbServer Server Protocol

Author:
Alex Shepherd Copyright (C) 2006

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ClientRxHandler(String newRemoteAddress, Socket newSocket)
           
 
Method Summary
 void close()
           
 void message(LocoNetMessage msg)
          Member function that will be invoked by a LocoNetInterface implementation to forward a LocoNet message from the layout.
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientRxHandler

public ClientRxHandler(String newRemoteAddress,
                       Socket newSocket)
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

close

public void close()

message

public void message(LocoNetMessage msg)
Description copied from interface: LocoNetListener
Member function that will be invoked by a LocoNetInterface implementation to forward a LocoNet message from the layout.

Specified by:
message in interface LocoNetListener
Parameters:
msg - The received LocoNet message. Note that this same object may be presented to multiple users. It should not be modified here.


Copyright © 1997 - 2009 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