Non-standard socket options?

Matthew Hall mhall at mhcomputing.net
Thu May 9 14:13:14 PDT 2013


On Thu, May 09, 2013 at 02:11:22PM -0700, Matthew Hall wrote:
> Brian,
> 
> That option is very new and non-standard so it doesn't appear anywhere in the JDK code.
> 
> I think you'll have to make a native library, and use this method:
> 
> http://stackoverflow.com/questions/11455803/most-efficient-way-to-pass-java-socket-file-descriptor-to-c-binary-file
> 
> Matthew.

You can also use Java JNA: Java Native Access.

That's probably simplay than using JNI.

Matthew.



More information about the net-dev mailing list