|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A factory for creating Sockets.
Protocol
Method Summary | |
Socket |
createSocket(String host,
int port)
Gets a new socket connection to the given host. |
Socket |
createSocket(String host,
int port,
InetAddress clientHost,
int clientPort)
Gets a new socket connection to the given host. |
Method Detail |
public Socket createSocket(String host, int port, InetAddress clientHost, int clientPort) throws IOException, UnknownHostException
host
- the host name/IPport
- the port on the hostclientHost
- the local host name/IP to bind the socket toclientPort
- the port on the local machine
IOException
- if an I/O error occurs while creating the socket
UnknownHostException
- if the IP address of the host cannot be
determinedpublic Socket createSocket(String host, int port) throws IOException, UnknownHostException
host
- the host name/IPport
- the port on the host
IOException
- if an I/O error occurs while creating the socket
UnknownHostException
- if the IP address of the host cannot be
determined
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |