UdpAnySourceMulticastClient(IPAddress, Int32) Construtor

Definição

Atenção

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

Cria um novo UdpAnySourceMulticastClient cliente UDP que pode subscrever um endereço de grupo e receber datagramas de qualquer fonte.

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)

Parâmetros

groupAddress
IPAddress

O endereço do grupo multicast para este recetor subscrever.

localPort
Int32

A porta local para este recetor se ligar.

Atributos

Exceções

groupAddress é null. referenciar

localPort é inferior a 0 -ou- localPort é superior a 65.535.

Observações

O UdpAnySourceMulticastClient construtor associa um socket multicast UDP a um endereço de grupo e uma porta, mas não associa nem utiliza o socket.

O groupAddress parâmetro pode ser um endereço multicast IPv6 ou IPv4.

O localPort parâmetro não deve especificar uma porta inferior a 1.024.

Aplica-se a