UdpSingleSourceMulticastClient.EndReceiveFromSource 메서드

정의

주의

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

조인된 멀티캐스트 그룹에서 패킷을 받는 비동기 작업을 완료하고 받은 정보를 제공합니다.

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

매개 변수

result
IAsyncResult

비동기 받기 작업의 결과입니다.

sourcePort
Int32

패킷을 받은 소스 엔드포인트입니다.

반환

Int32

BeginReceiveFromSource(Byte[], Int32, Int32, AsyncCallback, Object) 메서드에 전달된 buffer 매개 변수에 저장된 메시지의 길이(바이트)입니다.

특성

예외

result가 null 참조(Visual Basic의 경우 Nothing)인 경우

멀티캐스트 그룹이 아직 조인되지 않았습니다.

소켓에 액세스하는 동안 오류가 발생했습니다.

설명

EndReceiveFromSource 메서드 멀티 캐스트 그룹에서 하나의 원본에서 패킷을 수신 하는 비동기 작업을 완료 합니다.

소켓 오류가 수신 작업을 수행 하는 동안 발생 하는 경우는 SocketException throw 됩니다. 구성원으로 지정 된 오류가 SocketError 열거형입니다.

적용 대상