com.infoengine.au
Interface SocketFactory

All Known Implementing Classes:
SimpleSocketFactory

public interface SocketFactory


Method Summary
 java.net.Socket createSocket(java.lang.String service, java.lang.String host, int port)
          Creates a socket that establishes a network connection to a named service.
 

Method Detail

createSocket

java.net.Socket createSocket(java.lang.String service,
                             java.lang.String host,
                             int port)
                             throws java.io.IOException,
                                    java.net.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
java.net.UnknownHostException - if the host is not known
java.io.IOException