UdpAnySourceMulticastClient(IPAddress, Int32) 생성자

정의

주의

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

그룹 주소를 구독하고 모든 소스의 데이터그램을 받을 수 있는 새 UdpAnySourceMulticastClient UDP 클라이언트를 만듭니다.

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

매개 변수

groupAddress
IPAddress

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

localPort
Int32

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

특성

예외

groupAddress이(가) null인 경우 reference

localPort가 0보다 작거나 localPort가 65,535보다 큽니다.

설명

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

groupAddress 매개 변수는 IPv6 또는 IPv4 멀티 캐스트 수 주소입니다.

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

적용 대상