|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface used to create client sockets.
Method Summary | |
Socket |
createSocket(InetAddress address,
int port)
Create a socket and connect to remote address specified. |
Socket |
createSocket(InetAddress address,
int port,
InetAddress localAddress,
int localPort)
Create a socket and connect to remote address specified originating from specified local address. |
Method Detail |
public Socket createSocket(InetAddress address, int port) throws IOException
address
- the remote addressport
- the remote port
IOException
- if an error occurspublic 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 an error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |