Network Examples

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.

Blocking Fortune Client Example

Demonstrates how to create a client for a network service.

Broadcast Receiver Example

Demonstrates how to receive information broadcasted over a local network.

Broadcast Sender Example

Demonstrates how to broadcast information to multiple clients on a local network.

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 Client Example

Demonstrates how to create a client for a network service.

Fortune Server Example

Demonstrates how to create a server for a network service.

Google Suggest Example

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

HTTP Example

Demonstrates a simple HTTP client.

Loopback Example

Demonstrates the client-server communication on a local host.

Multicast Receiver Example

Demonstrates how to receive information sent to a multicast group.

Multicast Sender Example

Demonstrates how to send messages to a multicast group.

Network Chat Example

Demonstrates a stateful peer-to-peer Chat client.

Network Download Example

Demonstrates how to use networking APIs for multiple downloads.

Network Download Manager Example

Demonstrates how to use the networking APIs for multiple downloads.

Secure Socket Client Example

Demonstrates how to communicate over an encrypted (SSL) connection.

Threaded Fortune Server Example

The Threaded Fortune Server example shows how to create a server for a simple network service that uses threads to handle requests from different clients. It is intended to be run alongside the Fortune Client example.

Torrent Example

Demonstrates complex TCP/IP operations.

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