MulticastSocket.TimeToLive Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get the default time-to-live for multicast packets sent out on
the socket. -or- Set the default time-to-live for multicast packets sent out
on this MulticastSocket
in order to control the
scope of the multicasts.
public virtual 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
the default time-to-live value
- Attributes
Exceptions
if an error occurs.
Remarks
Property getter documentation:
Get the default time-to-live for multicast packets sent out on the socket.
Java documentation for java.net.MulticastSocket.getTimeToLive()
.
Property setter documentation:
Set the default time-to-live for multicast packets sent out on this MulticastSocket
in order to control the scope of the multicasts.
The ttl <B>must</B> be in the range 0 <= ttl <= 255
or an IllegalArgumentException
will be thrown. Multicast packets sent with a TTL of 0
are not transmitted on the network but may be delivered locally.
Java documentation for java.net.MulticastSocket.setTimeToLive(int)
.
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.