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.
-
getClientHost()
- Returns the hostname of the client making the RMI call within this
thread.
-
getClientPort()
- Returns the remote port number of the client making the RMI call within
this thread.
-
getServerPort()
- Returns the port that the server is listening on for new connections.
-
run()
- The run() method of the Thread; is invoked by doing thread.start().
getClientHost
public String getClientHost() throws ServerNotActiveException
- Returns the hostname of the client making the RMI call within this
thread.
getClientPort
public int getClientPort() throws ServerNotActiveException
- Returns the remote port number of the client making the RMI call within
this thread.
getServerPort
public int getServerPort() throws ServerNotActiveException
- Returns the port that the server is listening on for new connections.
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