| org.codehaus.spice.netserve.sockets.SocketFactory
All known Subclasses: org.codehaus.spice.netserve.sockets.impl.DefaultSocketFactory,
SocketFactory | public interface SocketFactory (Code) | | Service used to create client sockets. The factory is used so that
the exact socket type and underlying transport is abstracted. The
sockets created could be proxied, SSL enabled, TLS enabled etc.
However clients just care that they return sockets.
author: Peter Donald version: $Revision: 1.2 $ $Date: 2004/03/21 23:43:00 $ |
createSocket | Socket createSocket(InetAddress address, int port) throws IOException(Code) | | Create a socket that connects to specified remote address.
Parameters: address - the remote address Parameters: port - the remote port the socket connected to remote address throws: IOException - if unable to create socket |
createSocket | Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException(Code) | | Create a socket that connects to specified remote address and
originates from specified local address.
Parameters: address - the remote address Parameters: port - the remote port Parameters: localAddress - the local address Parameters: localPort - the local port the socket connected to remote address throws: IOException - if unable to create socket |
|
|