Hi, JDK devs.

Is there a reason the impl not there below?

jdk/src/windows/classes/java/net/PlainSocketImpl.java

    public void setOption(int opt, Object val) throws SocketException {
        setOption(opt, val);   // Why not impl.setOption(opt, val);?
    }

    public Object getOption(int opt) throws SocketException {
        return impl.getOption(opt);
    }

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?

Note that on Linux at least the option can be passed directly to the
built-in C native path.

Thanks much!

Reply via email to