com.infoengine.au
Interface SocketFactory
- All Known Implementing Classes:
- DefaultSocketFactory, SimpleSocketFactory
- public interface SocketFactory
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.
- 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