protected Socket getSocket() throws IOException {
        Socket socket =  new Socket();
        socket.setSoTimeout(timeout);
        socket.connect(new InetSocketAddress(host, port), timeout);
        return socket;
    }
Get a socket to the current host and port. Partly implemented as a separate method for unit testing purposes.

@return socket to host and port
@throws IOException if an I/O error occurs when creating the socket
primefaces/src/main/java/org/primefaces/virusscan/impl/ClamDaemonClient.java