上一话题

主窗口范例

下一话题

描绘范例

网络范例

How to do network programming in Qt.

../_images/network-examples.png

Qt is provided with an extensive set of network classes to support both client-based and server side network programming.

These examples demonstrate the fundamental aspects of network programming with Qt.

阻塞 Fortune 客户端范例

演示如何为网络服务创建客户端。

广播接收器范例

演示如何接收,通过本地网络广播的信息。

广播发送器范例

演示如何把信息广播到本地网络中的多个客户端。

Fortune 客户端范例

演示如何为网络服务创建客户端。

Fortune 服务器范例

演示如何为网络服务创建服务器。

Google 建议范例

Obtains the list of search recommendations by the Google search engine.

HTTP 范例

Demonstrates a simple HTTP client.

回环范例

Demonstrates the client-server communication on a local host.

多点播送接收器范例

演示如何接收,被发送给多点播送组的信息。

多点播送发送器范例

演示如何把消息,发送到多点播送组。

网络聊天范例

Demonstrates a stateful peer-to-peer Chat client.

网络下载范例

Demonstrates how to use networking APIs for multiple downloads.

网络下载管理器范例

Demonstrates how to use the networking APIs for multiple downloads.

安全套接字客户端范例

演示如何通过加密 (SSL) 连接进行通信。

DTLS-client

This example demonstrates how to implement client-side DTLS connections.

DTLS-server

This examples demonstrates how to implement a simple DTLS server.

线程化 Fortune 服务器范例

线程化 Fortune 服务器范例展示如何创建服务器,为使用线程处理来自不同客户端的请求的简单网络服务。它旨在与 Fortune 客户端范例一起运行。

Torrent Example

演示复杂 TCP/IP 操作。