Package | Description |
---|---|
java.net |
Contains network classes.
|
javax.net |
Modifier and Type | Method and Description |
---|---|
Socket |
ServerSocket.accept()
Listens for a connection to be made to this socket and accepts it.
|
Modifier and Type | Method and Description |
---|---|
Socket |
SocketFactory.createSocket()
Creates an unconnected socket.
|
abstract Socket |
SocketFactory.createSocket(InetAddress host,
int port)
Creates a socket and connects it to the specified port number at the specified address.
|
abstract Socket |
SocketFactory.createSocket(InetAddress address,
int port,
InetAddress localAddress,
int localPort)
Creates a socket and connect it to the specified remote address on the specified remote port.
|
abstract Socket |
SocketFactory.createSocket(java.lang.String host,
int port)
Creates a socket and connects it to the specified remote host at the specified remote port.
|
abstract Socket |
SocketFactory.createSocket(java.lang.String host,
int port,
InetAddress localHost,
int localPort)
Creates a socket and connects it to the specified remote host on the specified remote port.
|