|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
Socket |
createSocket(InetAddress address,
int port)
Create a socket that connects to specified remote address. |
Socket |
createSocket(InetAddress address,
int port,
InetAddress localAddress,
int localPort)
Create a socket that connects to specified remote address and originates from specified local address. |
Method Detail |
public Socket createSocket(InetAddress address, int port) throws IOException
address
- the remote addressport
- the remote port
IOException
- if unable to create socketpublic Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
address
- the remote addressport
- the remote portlocalAddress
- the local addresslocalPort
- the local port
IOException
- if unable to create socket
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |