|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An abstraction for creating sockets.
Method Summary | |
java.net.ServerSocket |
createServerSocket(java.net.InetAddress host,
int port)
Creates a new socket listening to the specified host and port. |
java.net.Socket |
createSocket(java.net.InetAddress host,
int port)
Creates a new socket to the specified host and port. |
Method Detail |
public java.net.Socket createSocket(java.net.InetAddress host, int port) throws java.io.IOException
host
- the remote hostport
- the remote port
Socket
instance.
java.io.IOException
- if an I/O error occurs when creating the socket.public java.net.ServerSocket createServerSocket(java.net.InetAddress host, int port) throws java.io.IOException
host
- the local hostport
- the local port
ServerSocket
instance.
java.io.IOException
- if an I/O error occurs when creating the socket.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |