Esempi di rete

Esistono numerosi esempi che dimostrano le potenzialità di Qt Network

Qt Network è dotato di un ampio insieme di classi di rete a supporto della programmazione di rete sia lato client che lato server.

Questi esempi illustrano gli aspetti fondamentali della programmazione di rete con Qt Network.

Blocking Fortune Client

Mostra come creare un client per un servizio di rete.

Broadcast Receiver

Mostra come ricevere informazioni trasmesse su una rete locale.

Broadcast Sender

Mostra come trasmettere informazioni a più client su una rete locale.

DNS lookup

Mostra come effettuare la ricerca di un nome host utilizzando QDnsLookup.

DTLS client

Questo esempio illustra come implementare connessioni DTLS sul lato client.

DTLS server

Questo esempio illustra come implementare un semplice server DTLS.

Fortune Client

Mostra come creare un client per un servizio di rete.

Fortune Server

Mostra come creare un server per un servizio di rete.

HTTP Client

Mostra un semplice client HTTP.

Multi-stream Client

Mostra come utilizzare SCTP sul lato client.

Multi-stream Server

Mostra come utilizzare SCTP sul lato server.

Multicast Receiver

Mostra come ricevere informazioni inviate a un gruppo multicast.

Multicast Sender

Mostra come inviare messaggi a un gruppo multicast.

Network Chat

Mostra un client di chat peer-to-peer con stato.

Secure Socket Client

Mostra come comunicare tramite una connessione crittografata (SSL).

Threaded Fortune Server

L'esempio "Threaded Fortune Server" illustra come creare un server per un semplice servizio di rete che utilizza thread per gestire le richieste provenienti da diversi client. È pensato per essere eseguito insieme all'esempio "Fortune Client".

Torrent Example

Mostra operazioni TCP/IP complesse.

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