public class AgentSocketFactory extends RMISocketFactory implements RMIClientSocketFactory
Modifier and Type | Method and Description |
---|---|
ServerSocket |
createServerSocket(int port)
This method just calls the superClass createServerSocket method
to create a ServerSocket.
|
Socket |
createSocket(String host,
int port)
Overrides the createSocket method of the RMISocketFactory
superclass.
|
getDefaultSocketFactory, getFailureHandler, getSocketFactory, setFailureHandler, setSocketFactory
public Socket createSocket(String host, int port) throws IOException
createSocket
in interface RMIClientSocketFactory
createSocket
in class RMISocketFactory
host
- - the destination host.port
- - the port number to connect to.IOException
- Error creating the socketRMISocketFactory
public ServerSocket createServerSocket(int port) throws IOException
createServerSocket
in interface RMIServerSocketFactory
createServerSocket
in class RMISocketFactory
port
- The port to bindIOException
- Error creating the socketRMISocketFactory