us.ihmc.utilities.remote
Class ReflectiveTCPServer

java.lang.Object
  extended by us.ihmc.utilities.remote.ReflectiveTCPServer

public class ReflectiveTCPServer
extends java.lang.Object


Nested Class Summary
 class ReflectiveTCPServer.ClientHandler
           
 class ReflectiveTCPServer.ServerThread
           
 
Constructor Summary
ReflectiveTCPServer(java.lang.Object reflectiveObject)
           
 
Method Summary
 void close()
          Tries to close server socket
 java.lang.String getHost()
          Returns the hostname of this server.
 int getPort()
          Returns the port number of this server.
 void init()
           
 void init(int port)
           
 void init(java.lang.String host, int port)
          Tries to start a socketserver on the specified port.
 void initByInterface(java.lang.String interfaceName, int iPort)
           
 java.lang.Object invokeMethod(java.lang.String methodName, java.util.Vector<?> args)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectiveTCPServer

public ReflectiveTCPServer(java.lang.Object reflectiveObject)
Method Detail

init

public void init()

init

public void init(int port)

initByInterface

public void initByInterface(java.lang.String interfaceName,
                            int iPort)

init

public void init(java.lang.String host,
                 int port)
Tries to start a socketserver on the specified port.

Parameters:
host - - host name (IP) to use
port - - port to use for opened socket

close

public void close()
Tries to close server socket


getHost

public java.lang.String getHost()
Returns the hostname of this server.


getPort

public int getPort()
Returns the port number of this server.


invokeMethod

public java.lang.Object invokeMethod(java.lang.String methodName,
                                     java.util.Vector<?> args)
                              throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)