On 13/01/2013 08:22, Chris Hegarty wrote:
:

More generally, is there a general way to pass a non
StandardSocketOptions option
the down to the socket fd without having to go through the JNI path on
Windows?


Not that I am aware of.
Just to add to Chris's comment. You can develop your own SelectorProvider implementation that supports socket options beyond those defined by StandardSocketOptions. These are usable with channels that implement NetworkChannel via the setOption/getOption methods. So as should be clear, the provider implementation needs to support the extended socket options first, this is not an API that allows you to pass in arbitrary socket options without mapping.

At this time, the classic networking APIs (java.net.Socket) don't define APIs that take a SocketOption but one could envisage adding them in the future.

-Alan

PS: I think follow-ups should be sent to net-dev.

Reply via email to