UdpSingleSourceMulticastClient(IPAddress, IPAddress, Int32) 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
주의
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
바인딩할 이 수신기의 로컬 포트입니다.
- 특성
예외
sourceAddress 은 groupAddress 동일한 주소 패밀리여야 합니다.
sourceAddress null 참조(Visual Basic 없음)입니다.
-또는-
groupAddress null 참조(Visual Basic 없음)입니다.
localPort 가 1024보다 작음
설명
UdpSingleSourceMulticastClient 생성자는 UDP 멀티캐스트 소켓을 그룹 주소 및 포트와 연결하지만 바인딩하거나 사용하지 않습니다.
매개 변수는 groupAddress IPv6 또는 IPv4 멀티캐스트 주소일 수 있습니다. 그러나 매개 변수 및 sourceAddress 매개 변수의 주소 패밀리는 groupAddress 동일해야 합니다.
매개 변수는 localPort 1,024보다 작은 포트를 지정해서는 안됩니다.