Dil

DatagramSocketImpl.TTL Property

Definition

Gets the time-to-live (TTL) for multicast packets sent on this socket.

protected abstract sbyte TTL { [Android.Runtime.Register("getTTL", "()B", "GetGetTTLHandler")] get; [Android.Runtime.Register("setTTL", "(B)V", "GetSetTTL_BHandler")] set; }
[<get: Android.Runtime.Register("getTTL", "()B", "GetGetTTLHandler")>]
[<set: Android.Runtime.Register("setTTL", "(B)V", "GetSetTTL_BHandler")>]
member this.TTL : sbyte with get, set

Property Value

a byte representing the TTL value

Attributes

Exceptions

if an error occurs while getting the time-to-live option value.

if an error occurs while setting the option.

Remarks

Retrieve the TTL (time-to-live) option.

Java reference for java.net.DatagramSocketImpl.getTTL.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also