DatagramSocketControl.MulticastOnly DatagramSocketControl.MulticastOnly DatagramSocketControl.MulticastOnly DatagramSocketControl.MulticastOnly DatagramSocketControl.MulticastOnly Property

Definition

Gets or sets a Boolean value that specifies whether the DatagramSocket is able to coexist with other Win32 or WinRT multicast sockets bound to the same address/port.

public : Platform::Boolean MulticastOnly { get; set; }
bool MulticastOnly();

void MulticastOnly(bool multicastonly);
public bool MulticastOnly { get; set; }
Public ReadWrite Property MulticastOnly As bool
var bool = datagramSocketControl.multicastOnly;
datagramSocketControl.multicastOnly = bool;

Property Value

bool bool bool

Setting this property to true enables the DatagramSocket instance to share its local port with any Win32 sockets that are bound using SO_REUSEADDR/SO_REUSE_MULTICASTPORT, and with any other DatagramSocket instances that have MulticastOnly set to true.

See also