ネットワークの例

Qt Network の機能を実証する例は数多くあります

Qt Network には、クライアント側およびサーバー側のネットワークプログラミングの両方をサポートするための、豊富なネットワーククラスセットが用意されています。

これらのサンプルは、Qt Network を用いたネットワークプログラミングの基本的な側面を示しています。

Blocking Fortune Client

ネットワークサービスのクライアントを作成する方法を示します。

Broadcast Receiver

ローカルネットワーク上でブロードキャストされた情報を受信する方法を示します。

Broadcast Sender

ローカルネットワーク上の複数のクライアントに情報をブロードキャストする方法を示します。

DNS lookup

QDnsLookup を使用してホスト名を検索する方法を示します。

DTLS client

この例では、クライアント側の DTLS 接続を実装する方法を示しています。

DTLS server

この例では、簡単な DTLS サーバーを実装する方法を示します。

Fortune Client

ネットワークサービスのクライアントを作成する方法を示します。

Fortune Server

ネットワークサービスのサーバーを作成する方法を示します。

HTTP Client

簡単な HTTP クライアントの例です。

Multi-stream Client

クライアント側で SCTP を使用する方法を示します。

Multi-stream Server

サーバー側で SCTP を使用する方法を示します。

Multicast Receiver

マルチキャストグループに送信された情報を受信する方法を示します。

Multicast Sender

マルチキャストグループへのメッセージ送信方法を解説します。

Network Chat

ステートフルなピアツーピアチャットクライアントの実演。

Secure Socket Client

暗号化された (SSL) 接続を介して通信する方法を示します。

Threaded Fortune Server

「Threaded Fortune Server」のサンプルでは、スレッドを使用してさまざまなクライアントからのリクエストを処理する、単純なネットワークサービスのサーバーを作成する方法を示しています。このサンプルは、「Fortune Client」のサンプルと併せて実行することを想定しています。

Torrent Example

複雑な TCP/IP 操作を実演します。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.