All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ninja.rmi.Reliable_ServerThread

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----ninja.rmi.NinjaServerThread
                   |
                   +----ninja.rmi.Reliable_ServerThread

public class Reliable_ServerThread
extends NinjaServerThread
Reliable_ServerThread is a NinjaServerThread which deals with reliable connections using TCP sockets. The getClientHost()/getClientPort() methods are provided to allow threads to identify the client of an RMI call in their thread.


Method Index

 o getClientHost()
Returns the hostname of the client making the RMI call within this thread.
 o getClientPort()
Returns the remote port number of the client making the RMI call within this thread.
 o getServerPort()
Returns the port that the server is listening on for new connections.
 o run()
The run() method of the Thread; is invoked by doing thread.start().

Methods

 o getClientHost
 public String getClientHost() throws ServerNotActiveException
Returns the hostname of the client making the RMI call within this thread.

 o getClientPort
 public int getClientPort() throws ServerNotActiveException
Returns the remote port number of the client making the RMI call within this thread.

 o getServerPort
 public int getServerPort() throws ServerNotActiveException
Returns the port that the server is listening on for new connections.

 o run
 public void run()
The run() method of the Thread; is invoked by doing thread.start().

Overrides:
run in class NinjaServerThread

All Packages  Class Hierarchy  This Package  Previous  Next  Index