UdpAnySourceMulticastClient Constructor
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Creates a new UdpAnySourceMulticastClient UDP client that can subscribe to a group address and receive datagrams from any source.
Assembly: System.Net (in System.Net.dll)
Parameters
- groupAddress
- Type: System.Net.IPAddress
The multicast group address for this receiver to subscribe to.
- localPort
- Type: System.Int32
The local port for this receiver to bind to.
| Exception | Condition |
|---|---|
| ArgumentNullException | groupAddress is null. |
| ArgumentOutOfRangeException | localPort is less than 0 -or- localPort is greater than 65,535. |
| SocketException | localPort is less than 1,024. |
Show: