Dela via


DatagramSocketImpl.TimeToLive Property

Definition

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

protected abstract int TimeToLive { [Android.Runtime.Register("getTimeToLive", "()I", "GetGetTimeToLiveHandler")] get; [Android.Runtime.Register("setTimeToLive", "(I)V", "GetSetTimeToLive_IHandler")] set; }
[<get: Android.Runtime.Register("getTimeToLive", "()I", "GetGetTimeToLiveHandler")>]
[<set: Android.Runtime.Register("setTimeToLive", "(I)V", "GetSetTimeToLive_IHandler")>]
member this.TimeToLive : int with get, set

Property Value

Attributes

Exceptions

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

if an error occurs while setting the option.

Remarks

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