us.ihmc.utilities.remote
Class ReflectiveTCPServer.ClientHandler

java.lang.Object
  extended by us.ihmc.utilities.remote.ReflectiveTCPServer.ClientHandler
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
ReflectiveTCPServer

public class ReflectiveTCPServer.ClientHandler
extends java.lang.Object
implements java.lang.Runnable


Constructor Summary
ReflectiveTCPServer.ClientHandler(java.net.Socket clientSocket)
          ClientHandler sets the socket
 
Method Summary
 java.lang.String getHost()
          getHost
 int getPort()
          getPort
 boolean isConnected()
          isConnected
 void run()
          run - while connected, continues to read the object input stream and adds all objects to the newObjects vector
 void start()
          starts the client handler
 void stop()
          stop - sets client handler to disconnected which will terminate the "run" while loop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectiveTCPServer.ClientHandler

public ReflectiveTCPServer.ClientHandler(java.net.Socket clientSocket)
ClientHandler sets the socket

Parameters:
clientSocket - the socket for the client handler to read from
Method Detail

start

public void start()
starts the client handler


stop

public void stop()
stop - sets client handler to disconnected which will terminate the "run" while loop


run

public void run()
run - while connected, continues to read the object input stream and adds all objects to the newObjects vector

Specified by:
run in interface java.lang.Runnable

isConnected

public boolean isConnected()
isConnected

Returns:
a boolean true = connected, false = NOT connected

getHost

public java.lang.String getHost()
getHost

Returns:
host name

getPort

public int getPort()
getPort

Returns:
port number