UdpAnySourceMulticastClient(IPAddress, Int32) Construtor
Definição
Cuidado
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Cria um novo cliente UDP UdpAnySourceMulticastClient que pode assinar um endereço de grupo e receber datagramas de qualquer origem.Creates a new UdpAnySourceMulticastClient UDP client that can subscribe to a group address and receive datagrams from any source.
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 de multicast desse receptor a ser assinado.The multicast group address for this receiver to subscribe to.
- localPort
- Int32
A porta local desse destinatário a que se deve associar.The local port for this receiver to bind to.
- Atributos
Exceções
groupAddress é null.groupAddress is null. referencereference
localPort é menor que 0 -ou- localPort é maior que 65.535.localPort is less than 0 -or- localPort is greater than 65,535.
Comentários
O UdpAnySourceMulticastClient Construtor associa um soquete de multicast UDP a um endereço de grupo e uma porta, mas não liga ou usa o soquete de outra forma.The UdpAnySourceMulticastClient constructor associates a UDP multicast socket with a group address and port, but does not bind or otherwise use the socket.
O groupAddress parâmetro pode ser um endereço de multicast IPv6 ou IPv4.The groupAddress parameter may be either an IPv6 or IPv4 multicast address.
O localPort parâmetro não deve especificar uma porta menor que 1.024.The localPort parameter must not specify a port less than 1,024.