System::Net::Sockets::UdpClient::Connect method

UdpClient::Connect(String, int32_t) method

指定されたホストの指定ポートへの接続を確立します。

void System::Net::Sockets::UdpClient::Connect(String hostname, int32_t port)
パラメーター説明
ホスト名String接続しようとしているリモート DNS ホストの名前。
ポートint32_t通信しようとしているローカルポート番号です。

参照

UdpClient::Connect(System::SharedPtr<IPAddress>, int32_t) method

指定されたアドレスと指定ポートのホストとの接続を確立します。

void System::Net::Sockets::UdpClient::Connect(System::SharedPtr<IPAddress> addr, int32_t port)
パラメーター説明
addrSystem::SharedPtr<IPAddress>データを送信するリモートホストの IPAddress です。
ポートint32_t通信しようとしているローカルポート番号です。

参照

UdpClient::Connect(System::SharedPtr<IPEndPoint>) method

リモートエンドポイントへの接続を確立します。

void System::Net::Sockets::UdpClient::Connect(System::SharedPtr<IPEndPoint> endPoint)
パラメーター説明
endPointSystem::SharedPtr<IPEndPoint>UDP 接続をバインドするエンドポイント。

参照