com.infoengine.au
Class DefaultSocketFactory
java.lang.Object
com.infoengine.au.DefaultSocketFactory
- All Implemented Interfaces:
- SocketFactory
- public class DefaultSocketFactory
- extends Object
- implements SocketFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSocketFactory
public DefaultSocketFactory()
- Constructor
createSocket
public Socket createSocket(String service,
String host,
int port)
throws IOException,
UnknownHostException
- Creates a socket that establishes a network connection to a
named service.
- Specified by:
createSocket
in interface SocketFactory
- Parameters:
service
- The name of the Info*Engine service to which the
socket will be connected.host
- The name of the host on which the service instance resides.port
- The port number on which the service instance listens for
connection requests.
- Returns:
- The connected socket.
- Throws:
IOEException
- if the connection can not be established
UnknownHostException
- if the host is not known
IOException