System.Net.Sockets.UdpClient.EnableBroadcast Property

Gets or sets a bool value that specifies whether the System.Net.Sockets.UdpClient may send or receive broadcast packets.

Syntax

public bool EnableBroadcast { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Broadcasting is limited to a specific subnet. You can broadcast to your local subnet by sending a packet to 255.255.255.255; or, you can use the directed broadcast address, which is the network portion of an Internet Protocol (IP) address with all bits set in the host portion. For example, if your IP address is 192.168.1.40 (a Class C address, with the network portion as the first three octets, and the host portion is the last octet), your directed broadcast address is 192.168.1.255.

Requirements

Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0