The API documentation of Socket and ServerSocket link to SocketOptions which is kind of obsolete. It should link to StandardSocketOptions instead, where appropriate.
See for instance:
https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/net/Socket.html#setSendBufferSize(int)
See for instance:
https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/net/Socket.html#setSendBufferSize(int)
- duplicates
-
JDK-8329745 Update the documentation of ServerSocket and Socket to refer to StandardSocketOptions instead of legacy SocketOptions
- Resolved
- relates to
-
JDK-8286627 Socket setSendBufferSize() does not work
- Closed