public class DefaultSocketFactory extends java.lang.Object implements SocketFactory
SocketFactory; creates standard Socket instances.| Constructor and Description |
|---|
DefaultSocketFactory() |
| Modifier and Type | Method and Description |
|---|---|
java.net.Socket |
createSocket(java.net.InetAddress host,
int port)
Create a new Socket instance for the specified host and port.
|
public java.net.Socket createSocket(java.net.InetAddress host,
int port)
throws java.io.IOException
createSocket in interface SocketFactoryhost - - the IP address of the host endpoint to which the socket is connectport - - the port number of the enpoint to which the socket is connectedjava.io.IOException - - if an error occursSocketFactory.createSocket(java.net.InetAddress, int)