Located in compilation unit of javax.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Socket | |
| public Socket | createSocket(String host, int port)
Implements abstract javax. Creates a socket and connects it to the specified remote host at the specified remote port. |
| public Socket | createSocket(InetAddress address, int port)
Implements abstract javax. Creates a socket and connects it to the specified port number at the specified address. |
| public Socket | createSocket(String host, int port, InetAddress clientAddress, int clientPort)
Implements abstract javax. Creates a socket and connects it to the specified remote host on the specified remote port. |
| public Socket | createSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort)
Implements abstract javax. Creates a socket and connect it to the specified remote address on the specified remote port. |
| DefaultSocketFactory | back to summary |
|---|---|
| pack-priv DefaultSocketFactory() | |
| createSocket | back to summary |
|---|---|
| public Socket createSocket() Overrides javax. Doc from javax. Creates an unconnected socket. | |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(String host, int port) throws IOException, UnknownHostException Implements abstract javax. Doc from javax. Creates a socket and connects it to the specified remote host at the specified remote port. This socket is configured using the socket options established for this factory.
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(InetAddress address, int port) throws IOException Implements abstract javax. Doc from javax. Creates a socket and connects it to the specified port number at the specified address. This socket is configured using the socket options established for this factory.
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(String host, int port, InetAddress clientAddress, int clientPort) throws IOException, UnknownHostException Implements abstract javax. Doc from javax. Creates a socket and connects it to the specified remote host on the specified remote port. The socket will also be bound to the local address and port supplied. This socket is configured using the socket options established for this factory.
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort) throws IOException Implements abstract javax. Doc from javax. Creates a socket and connect it to the specified remote address on the specified remote port. The socket will also be bound to the local address and port supplied. The socket is configured using the socket options established for this factory.
| |