All Packages Class Hierarchy This Package Previous Next Index
Class ninja.rmi.McastOw_ServerThread
java.lang.Object
|
+----java.lang.Thread
|
+----ninja.rmi.NinjaServerThread
|
+----ninja.rmi.McastOw_ServerThread
- public class McastOw_ServerThread
- extends NinjaServerThread
An McastOw_ServerThread deals with incoming RMI connections on a
multicast UDP socket. Calls are unreliable and one-way (no return value
or exceptions may be returned from the server method).
-
getClientHost()
- Returns the hostname of the client making the RMI call in this thread.
-
getClientPort()
- Returns the remote port of the client making the RMI call in this thread.
-
getServerAddress()
- Returns the IP address of the multicast group on which the server
is listening.
-
getServerPort()
-
Returns the port number on which the server is listening 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 in this thread.
getClientPort
public int getClientPort() throws ServerNotActiveException
- Returns the remote port of the client making the RMI call in this thread.
getServerPort
public int getServerPort() throws ServerNotActiveException
- Returns the port number on which the server is listening for new
connections.
getServerAddress
public InetAddress getServerAddress() throws ServerNotActiveException
- Returns the IP address of the multicast group on which the server
is listening.
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