A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/net/Socket.html below:

Socket (Java SE 19 & JDK 19)

All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
SSLSocket

This class implements client sockets (also called just "sockets"). A socket is an endpoint for communication between two machines.

The actual work of the socket is performed by an instance of the SocketImpl class.

The Socket class defines convenience methods to set and get several socket options. This class also defines the setOption and getOption methods to set and query socket options. A Socket support the following options:

Socket options Option Name Description SO_SNDBUF The size of the socket send buffer SO_RCVBUF The size of the socket receive buffer SO_KEEPALIVE Keep connection alive SO_REUSEADDR Re-use address SO_LINGER Linger on close if data is present (when configured in blocking mode only) TCP_NODELAY Disable the Nagle algorithm

Additional (implementation specific) options may also be supported.

Since:
1.0
See Also:

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4