Share via


UdpSingleSourceMulticastClient(IPAddress, IPAddress, Int32) 생성자

정의

주의

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

그룹 주소를 구독하고 단일 원본에서 데이터그램을 받을 수 있는 새 UdpSingleSourceMulticastClient UDP 클라이언트를 만듭니다.

public:
 UdpSingleSourceMulticastClient(System::Net::IPAddress ^ sourceAddress, 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 UdpSingleSourceMulticastClient (System.Net.IPAddress sourceAddress, 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.UdpSingleSourceMulticastClient : System.Net.IPAddress * System.Net.IPAddress * int -> System.Net.Sockets.UdpSingleSourceMulticastClient
Public Sub New (sourceAddress As IPAddress, groupAddress As IPAddress, localPort As Integer)

매개 변수

sourceAddress
IPAddress

구독할 이 수신자에 대한 발신자 원본 주소입니다.

groupAddress
IPAddress

구독할 이 수신자에 대한 멀티캐스트 그룹 주소입니다.

localPort
Int32

바인딩할 이 수신자에 대한 로컬 포트입니다.

특성

예외

sourceAddressgroupAddress 는 같은 주소 패밀리여야 합니다.

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

또는

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

localPort가 0보다 작습니다.

또는

localPort가 65,535보다 큽니다.

localPort가 1024보다 작습니다.

설명

UdpSingleSourceMulticastClient 생성자 그룹 주소 및 포트를 사용 하 여 멀티 캐스트 UDP 소켓 연결 하지만 하지 바인딩 않거나 그렇지 않은 경우 소켓을 사용 합니다.

groupAddress 매개 변수는 IPv6 또는 IPv4 멀티 캐스트 수 주소입니다. 그러나의 주소 패밀리는 sourceAddressgroupAddress 매개 변수는 같아야 합니다.

localPort 1024 보다 작은 포트 매개 변수 지정 해서는 안 됩니다.

적용 대상