UdpAnySourceMulticastClient.BeginJoinGroup(AsyncCallback, Object) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
주의
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
소켓을 바인딩하고 멀티캐스트 그룹에 조인 작업을 시작하여 모든 그룹 참가자로부터 데이터그램을 받을 수 있도록 합니다.
public:
IAsyncResult ^ BeginJoinGroup(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 BeginJoinGroup(AsyncCallback callback, object state);
[<System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)>]
member this.BeginJoinGroup : AsyncCallback * obj -> IAsyncResult
Public Function BeginJoinGroup (callback As AsyncCallback, state As Object) As IAsyncResult
매개 변수
- callback
- AsyncCallback
작업이 완료된 경우 호출할 콜백 메서드입니다.
- state
- Object
이 작업에 대한 메서드에 callback 전달할 선택적 상태 정보입니다.
반품
IAsyncResult 이 작업을 참조하는 항목입니다.
- 특성
예외
멀티캐스트 그룹이 이미 조인되었거나 조인 작업이 현재 진행 중입니다.
소켓에 액세스하려고 할 때 오류가 발생했습니다.
설명
이 메서드는 BeginJoinGroup UDP 멀티캐스트 소켓을 로컬 포트에 바인딩하고 멀티캐스트 그룹을 조인하여 멀티캐스트 그룹 참가자로부터 데이터그램을 받을 수 있도록 합니다. 로컬 포트 및 멀티캐스트 그룹 주소는 생성자에 지정됩니다 UdpAnySourceMulticastClient .
매개 변수에 callback 지정된 메서드는 멀티캐스트 그룹에 조인하는 작업이 완료되면 호출됩니다.
런타임 BeginJoinGroup 에 필요한 경우 메서드는 정책 검사를 수행하여 클라이언트가 멀티캐스트 그룹에 액세스할 수 있는지 확인합니다. 클라이언트에 액세스할 수 없으면 .을 SocketException 사용하여 AccessDeniedthrow됩니다.