UdpAnySourceMulticastClient(IPAddress, Int32) Konstruktor

Definition

Achtung

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

Erstellt einen neuen UdpAnySourceMulticastClient UDP-Client, der eine Gruppenadresse abonniert und Datagramme von einer beliebigen Quelle empfangen kann.

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)

Parameter

groupAddress
IPAddress

Die Multicast-Gruppenadresse für diesen Empfänger, die abonniert werden soll.

localPort
Int32

Der lokale Port für diesen Empfänger, an den eine Bindung erfolgen soll.

Attribute

Ausnahmen

groupAddress ist null. Referenz

localPort ist kleiner als 0 -oder- localPort ist größer als 65.535.

Hinweise

Der UdpAnySourceMulticastClient Konstruktor ordnet einen UDP-Multicastsocket einer Gruppenadresse und einem Port zu, bindet jedoch nicht oder verwendet den Socket anderweitig.

Der groupAddress Parameter kann entweder eine IPv6- oder IPv4-Multicastadresse sein.

Der localPort Parameter darf keinen Port angeben, der kleiner als 1.024 ist.

Gilt für: