public class DefaultSocketFactory
extends java.lang.Object
implements org.apache.avalon.cornerstone.services.sockets.SocketFactory
| Constructor and Description |
|---|
DefaultSocketFactory() |
| Modifier and Type | Method and Description |
|---|---|
java.net.Socket |
createSocket(java.net.InetAddress address,
int port)
Create a socket and connect to remote address specified.
|
java.net.Socket |
createSocket(java.net.InetAddress address,
int port,
java.net.InetAddress localAddress,
int localPort)
Create a socket and connect to remote address specified
originating from specified local address.
|
public java.net.Socket createSocket(java.net.InetAddress address,
int port)
throws java.io.IOException
createSocket in interface org.apache.avalon.cornerstone.services.sockets.SocketFactoryaddress - the remote addressport - the remote portjava.io.IOException - if an error occurspublic java.net.Socket createSocket(java.net.InetAddress address,
int port,
java.net.InetAddress localAddress,
int localPort)
throws java.io.IOException
createSocket in interface org.apache.avalon.cornerstone.services.sockets.SocketFactoryaddress - the remote addressport - the remote portlocalAddress - the local addresslocalPort - the local portjava.io.IOException - if an error occurs