public interface SocketFactory
Socket instances.
 Using this abstraction enables unit testing.| Modifier and Type | Method and Description | 
|---|---|
Socket | 
createSocket(InetAddress host,
            int port)
Create a new Socket instance for the specified host and port. 
 | 
Socket createSocket(InetAddress host, int port) throws IOException
host - - the IP address of the host endpoint to which the socket is connectport - - the port number of the enpoint to which the socket is connectedIOException - - if an error occursCopyright © 2016. All rights reserved.