[cp-patches] RFC: NetworkInterface - implement some 1.6 methods

Robert Schuster theBohemian at gmx.net
Mon Apr 21 10:40:50 UTC 2008

I fixed the copy and paste error and another flaw. Casting to jboolean
did not alway returned the correct result. I made the if-flag-set then
JNI_TRUE otherwise JNI_FALSE explicit. Now it works correctly.

Christian Thalinger schrieb:
> I wonder if it would be simpler to only have one native method,
> returning the socket flags, and mapping the IFF_ defines in
> java/net/VMNetworkInterface so you could implement it in Java.  But I
> don't know if the flags are consistent between different OS or even libc
> versions.
I would like this, too. I think our POSIX gurus should comment. :)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: netif_16.diff
Type: text/x-patch
Size: 6990 bytes
Desc: not available
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20080421/5df8d65c/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20080421/5df8d65c/attachment-0001.pgp 

More information about the Classpath-patches mailing list