public abstract Socket createSocket (String host, int port) throws IOException

Create a client socket connected to the specified host and port.

Parameters:
host    the host name
port    the port number

Returns:  a socket connected to the specified host and port.

Exceptions:
IOException    if an I/O error occurs during socket creation

Since:  1.2