System::Net::Sockets::UdpClient クラス

UdpClient class

User Datagram Protocol(UDP)ネットワークサービスを提供します。このクラスのオブジェクトは System::MakeObject() 関数を使用してのみ割り当てるべきです。スタック上や operator new を使用してこのタイプのインスタンスを作成しないでください。そうしないと実行時エラーやアサーション障害が発生します。常にこのクラスを System::SmartPtr ポインタでラップし、そのポインタを関数の引数として使用してください。

class UdpClient : public System::IDisposable

メソッド

メソッド説明
Close()UDP 接続を閉じます。
Connect(String, int32_t)指定されたホストの指定ポートへの接続を確立します。
Connect(System::SharedPtr<IPAddress>, int32_t)指定されたアドレスと指定ポートのホストとの接続を確立します。
Connect(System::SharedPtr<IPEndPoint>)リモートエンドポイントへの接続を確立します。
Dispose() overrideUdpClient が使用する管理リソースと非管理リソースを解放します。
get_Client()RTTI 情報。
Receive(System::SharedPtr<IPEndPoint>&)サーバーから送信されたデータグラムを返します。
Send(System::ArrayPtr<uint8_t>, int32_t, System::SharedPtr<IPEndPoint>)リモートエンドポイントのホストへ UDP データグラムを送信します。
Send(System::ArrayPtr<uint8_t>, int32_t, String, int32_t)指定されたリモートホストの指定ポートへ UDP データグラムを送信します。
Send(System::ArrayPtr<uint8_t>, int32_t)リモートホストへ UDP データグラムを送信します。
set_Client(System::SharedPtr<Socket>)基礎となるネットワークソケットを提供するために使用されます。
UdpClient()UdpClient クラスの新しいインスタンスを初期化します。
UdpClient(AddressFamily)UdpClient クラスの新しいインスタンスを初期化します。
UdpClient(int32_t)UdpClient クラスの新しいインスタンスを初期化します。
UdpClient(int32_t, AddressFamily)UdpClient クラスの新しいインスタンスを初期化します。
UdpClient(System::SharedPtr<IPEndPoint>)UdpClient クラスの新しいインスタンスを初期化します。パラメーター local EP は、UDP 接続をバインドするローカルエンドポイントです。
UdpClient(String, int32_t)UdpClient クラスの新しいインスタンスを作成し、指定されたポートの指定されたリモートホストに接続します。

参照