| Modifier and Type | Method and Description |
|---|---|
| public DatagramSocket | Returns: the newly created socketCreates a datagram socket for UDP communication. |
| public Socket | |
| public InetAddress | |
| public int | |
| public default SocketAddress | |
| public static ClientSocketFactory | Returns: the client socket factorythe address to bind to address, final int the port to bind to port)Creates a new default implementation of the factory which uses |
| public static ClientSocketFactory | Returns: the client socket factorythe socket factory used for TCP connections, if socketFactory, final InetAddress null the
default socket factory will be usedthe address to bind to address, final int the port to bind to port)Creates a new default implementation of the factory which uses the provided
socket factory to create TCP connections and
|
| createDatagramSocket | back to summary |
|---|---|
| public DatagramSocket createDatagramSocket() throws SocketException Creates a datagram socket for UDP communication.
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket() throws IOException Creates a TCP socket.
| |
| getAddress | back to summary |
|---|---|
| public InetAddress getAddress() Returns the address being used to create sockets.
| |
| getPort | back to summary |
|---|---|
| public int getPort() Returns the port being used to create sockets.
| |
| getSocketAddress | back to summary |
|---|---|
| public default SocketAddress getSocketAddress() A convenience method to return the socket address.
The default implementation simply returns
| |
| of | back to summary |
|---|---|
| public static ClientSocketFactory of(final InetAddress address, final int port) Creates a new default implementation of the factory which uses
| |
| of | back to summary |
|---|---|
| public static ClientSocketFactory of(final SocketFactory socketFactory, final InetAddress address, final int port) Creates a new default implementation of the factory which uses the provided
socket factory to create TCP connections and
| |