System::Net::Sockets::UdpClient::Send メソッド

UdpClient::Send(System::ArrayPtr<uint8_t>, int32_t) method

リモートホストへ UDP データグラムを送信します。

int32_t System::Net::Sockets::UdpClient::Send(System::ArrayPtr<uint8_t> dgram, int32_t bytes)
パラメーター説明
dgramSystem::ArrayPtr<uint8_t>送信するための Byte 型配列。
バイトint32_tデータグラム内のバイト数。

ReturnValue

送信されるバイト数。

参照

UdpClient::Send(System::ArrayPtr<uint8_t>, int32_t, String, int32_t) method

指定されたリモートホストの指定ポートへ UDP データグラムを送信します。

int32_t System::Net::Sockets::UdpClient::Send(System::ArrayPtr<uint8_t> dgram, int32_t bytes, String hostname, int32_t port)
パラメーター説明
dgramSystem::ArrayPtr<uint8_t>送信するための Byte 型配列
バイトint32_tデータグラム内のバイト数。
ホスト名Stringリモート ホストの名前。
ポートint32_tリモート ポート番号。

ReturnValue

送信されるバイト数。

参照

UdpClient::Send(System::ArrayPtr<uint8_t>, int32_t, System::SharedPtr<IPEndPoint>) method

リモートエンドポイントのホストへ UDP データグラムを送信します。

int32_t System::Net::Sockets::UdpClient::Send(System::ArrayPtr<uint8_t> dgram, int32_t bytes, System::SharedPtr<IPEndPoint> endPoint)
パラメーター説明
dgramSystem::ArrayPtr<uint8_t>送信するための Byte 型配列
バイトint32_tデータグラム内のバイト数。
endPointSystem::SharedPtr<IPEndPoint>データグラムを送信するホストとポートを表す IPEndPoint

ReturnValue

送信されるバイト数。

参照