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:
 property bool MulticastOnly { bool get(); void set(bool value); };
bool MulticastOnly();

void MulticastOnly(bool value);
public bool MulticastOnly { get; set; }
var boolean = datagramSocketControl.multicastOnly;
datagramSocketControl.multicastOnly = boolean;
Public Property MulticastOnly As Boolean

Property Value

Boolean

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.

Applies to

See also