Package | Description |
---|---|
java.net | |
javax.net | |
javax.net.ssl |
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(String host,
int port)
Creates a socket and connects it to the specified remote host
at the specified remote port.
|
abstract Socket |
SocketFactory.createSocket(String host,
int port,
InetAddress localHost,
int localPort)
Creates a socket and connects it to the specified remote host
on the specified remote port.
|
Modifier and Type | Class and Description |
---|---|
class |
SSLSocket
This class extends
Socket s and provides secure
socket using protocols such as the "Secure
Sockets Layer" (SSL) or IETF "Transport Layer Security" (TLS) protocols. |
Modifier and Type | Method and Description |
---|---|
Socket |
SSLSocketFactory.createSocket(Socket s,
InputStream consumed,
boolean autoClose)
Creates a server mode
Socket layered over an existing connected
socket, and is able to read data which has already been consumed/removed
from the Socket 's underlying InputStream . |
abstract Socket |
SSLSocketFactory.createSocket(Socket s,
String host,
int port,
boolean autoClose)
Returns a socket layered over an existing socket connected to the named
host, at the given port.
|
Modifier and Type | Method and Description |
---|---|
Socket |
SSLSocketFactory.createSocket(Socket s,
InputStream consumed,
boolean autoClose)
Creates a server mode
Socket layered over an existing connected
socket, and is able to read data which has already been consumed/removed
from the Socket 's underlying InputStream . |
abstract Socket |
SSLSocketFactory.createSocket(Socket s,
String host,
int port,
boolean autoClose)
Returns a socket layered over an existing socket connected to the named
host, at the given port.
|