Any Source Multicast Client. Begin Receive From Group(Byte, Int32, Int32, AsyncCallback, Object) Method
This API is now obsolete.
Begins the operation of receiving a packet from the joined multicast group and invokes the specified callback when a packet has arrived on the group from any sender.
public: IAsyncResult ^ BeginReceiveFromGroup(cli::array <System::Byte> ^ buffer, int offset, int count, AsyncCallback ^ callback, System::Object ^ state);
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)] public IAsyncResult BeginReceiveFromGroup (byte buffer, int offset, int count, AsyncCallback callback, object state);
member this.BeginReceiveFromGroup : byte * int * int * AsyncCallback * obj -> IAsyncResult
Public Function BeginReceiveFromGroup (buffer As Byte(), offset As Integer, count As Integer, callback As AsyncCallback, state As Object) As IAsyncResult
The buffer to store the received data.
The offset, in bytes, from the beginning of the
buffer where the data should be stored.
The maximum number of bytes to receive and store in the
The callback method to invoke when the operation completes.
Optional state information to pass to the
callback method for this operation.
buffer is a null reference (Nothing in Visual Basic).
offset is less than 0
offset is greater than the length of the
count is less than 0
offset plus the count is greater than the length of the
The multicast group has not yet been joined.
An error occurred when attempting to access the socket.
The BeginReceiveFromGroup method begins an operation of receiving a UDP packet from the joined multicast group from any sender. The local port and multicast group address are specified in the UdpAnySourceMulticastClient constructor. The multicast client must also have completed a join to the multicast group.
The method specified in the
callback parameter is invoked when a packet has received.
It is possible to have a socket failure if a receive operation fails synchronously, although this is uncommon with UDP. If a socket failure occurs, a SocketException is thrown. The error received is specified as a member of the SocketError enumeration.