UdpAnySourceMulticastClient.EndReceiveFromGroup(IAsyncResult, IPEndPoint) UdpAnySourceMulticastClient.EndReceiveFromGroup(IAsyncResult, IPEndPoint) UdpAnySourceMulticastClient.EndReceiveFromGroup(IAsyncResult, IPEndPoint) UdpAnySourceMulticastClient.EndReceiveFromGroup(IAsyncResult, IPEndPoint) Method

Definición

Advertencia

Esta API está ya obsoleta.

Completa la operación asincrónica de recepción de un paquete desde el grupo de multidifusión asociado y proporciona la información recibida.Completes the asynchronous operation of receiving a packet from the joined multicast group and provides the information received.

public:
 int EndReceiveFromGroup(IAsyncResult ^ result, [Runtime::InteropServices::Out] System::Net::IPEndPoint ^ % source);
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public int EndReceiveFromGroup (IAsyncResult result, out System.Net.IPEndPoint source);
member this.EndReceiveFromGroup : IAsyncResult *  -> int
Public Function EndReceiveFromGroup (result As IAsyncResult, ByRef source As IPEndPoint) As Integer

Parámetros

result
IAsyncResult IAsyncResult IAsyncResult IAsyncResult

Resultado de la operación de recepción asincrónica.The result of the asynchronous receive operation.

source
IPEndPoint IPEndPoint IPEndPoint IPEndPoint

Punto de conexión de origen del que se recibió el paquete.The source endpoint where the packet was received from.

Devoluciones

Longitud, en bytes, del mensaje almacenado en el parámetro de búfer que se pasó al método BeginReceiveFromGroup(Byte[], Int32, Int32, AsyncCallback, Object).The length, in bytes, of the message stored in the buffer parameter passed to the BeginReceiveFromGroup(Byte[], Int32, Int32, AsyncCallback, Object) method.

Excepciones

result es una referencia nula (nada en Visual Basic).result is a null reference (Nothing in Visual Basic).

El grupo de multidifusión no se unió todavía.The multicast group has not yet been joined.

Error al intentar acceder al socket.An error occurred when attempting to access the socket.

Comentarios

El EndReceiveFromGroup método completa una operación asincrónica para recibir un paquete de un grupo de multidifusión.The EndReceiveFromGroup method completes an asynchronous operation to receive a packet from a multicast group.

Si se produce un error de socket al realizar la operación de recepción, un SocketException se produce.If there is a socket failure while performing the receive operation, a SocketException is thrown. El error recibido está especificado como un miembro de la SocketError enumeración.The error received is specified as a member of the SocketError enumeration.

Se aplica a