Condividi tramite


UdpAnySourceMulticastClient(IPAddress, Int32) Costruttore

Definizione

Attenzione

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Crea un nuovo client UDP UdpAnySourceMulticastClient in grado di sottoscrivere un indirizzo di gruppo e ricevere datagrammi da qualsiasi origine.

public:
 UdpAnySourceMulticastClient(System::Net::IPAddress ^ groupAddress, int localPort);
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public UdpAnySourceMulticastClient (System.Net.IPAddress groupAddress, int localPort);
[<System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)>]
new System.Net.Sockets.UdpAnySourceMulticastClient : System.Net.IPAddress * int -> System.Net.Sockets.UdpAnySourceMulticastClient
Public Sub New (groupAddress As IPAddress, localPort As Integer)

Parametri

groupAddress
IPAddress

Indirizzo di gruppo multicast che può sottoscrivere questo ricevente.

localPort
Int32

Porta locale per il binding di questo ricevente.

Attributi

Eccezioni

groupAddress è null. reference

localPort è minore di 0 -oppure- localPort è maggiore di 65.535.

Commenti

Il UdpAnySourceMulticastClient costruttore associa un socket multicast UDP a un indirizzo e una porta di gruppo, ma non associa o altrimenti usa il socket.

Il groupAddress parametro può essere un indirizzo multicast IPv6 o IPv4.

Il localPort parametro non deve specificare una porta minore di 1.024.

Si applica a