      *            the local host address the socket is bound to.      * @param localPort      *            the port number of the local host at which the socket is      *            bound.      * @return the created connected socket.      * @throws IOException      *             if an error occurs while creating a new socket.      * @throws UnknownHostException      *             if the specified host is unknown or the IP address could not      *             be resolved.      */     public abstract Socket createSocket(String host, int port