MulticastSocket.TTL 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.
Caution
deprecated
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.
[System.Obsolete("deprecated")]
public virtual sbyte TTL { [Android.Runtime.Register("getTTL", "()B", "GetGetTTLHandler")] get; [Android.Runtime.Register("setTTL", "(B)V", "GetSetTTL_BHandler")] set; }
[<System.Obsolete("deprecated")>]
[<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
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.
This member is deprecated. use the getTimeToLive method instead, which returns an <b>int</b> instead of a <b>byte</b>.
Java documentation for java.net.MulticastSocket.getTTL()
.
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 is an <b>unsigned</b> 8-bit quantity, and so <B>must</B> be in the range 0 <= ttl <= 0xFF
.
This member is deprecated. use the setTimeToLive method instead, which uses <b>int</b> instead of <b>byte</b> as the type for ttl.
Java documentation for java.net.MulticastSocket.setTTL(byte)
.
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.