言語

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

この受信側のバインドするローカル ポート。

属性

例外

groupAddressnullです。 参照

localPort が 0 より小さいか、 localPort が 65,535 より大きい。

注釈

UdpAnySourceMulticastClient コンストラクターは、UDP マルチキャスト ソケットをグループ アドレスとポートに関連付けますが、ソケットをバインドしたり使用したりしません。

groupAddress パラメーターには、IPv6 または IPv4 マルチキャスト アドレスを指定できます。

localPort パラメーターでは、1,024 未満のポートを指定しないでください。

適用対象