>I just discovered that there is two different native functions for
>accessing socket option time to live in
>java.net.PlainDatagramSocketImpl: setTTL(), getTTL(), setTimeToLive()
>and getTimeToLive().  The only difference seem to be that the *TTL are
>working with jbyte, and *TimeToLive are using jint.
>
>Is this a correct observation, or is there something I have missed.
>IS there a reason for JDK 1.2 to use jint instead of JDK 1.1's jbyte?

Your observation is correct.  The time to live value can be between 1 and
255 IIRC.  I think they made the switch to jint to avoid numbers showing up
as negative, though I think the function actually worked with them.

--
Aaron M. Renn ([EMAIL PROTECTED]) http://www.urbanophile.com/arenn/

Reply via email to