ネットワークの例

Qt には、クライアントベースとサーバーサイドの両方のネットワークプログラミングをサポートする、豊富なネットワーククラスが用意されています。

これらの例では、Qt を使ったネットワークプログラミングの基本的な部分を説明します。

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

ステートフルなピアツーピアChatクライアントのデモ

Secure Socket Client

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

Threaded Fortune Server

Threaded Fortune Server の例では、スレッドを使用してさまざまなクライアントからの要求を処理する、単純なネットワーク・サービスのサーバーを作成する方法を示します。これは、Fortune Clientの例と一緒に実行することを目的としています。

Torrent Example

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

© 2025 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.