QUdpSocket Class Reference

Detailed Description

UDP (User Datagram Protocol) is a lightweight, unreliable, datagram-oriented, connectionless protocol. It can be used when reliability isn't important. QUdpSocket is a subclass of QAbstractSocket that allows you to send and receive UDP datagrams.

With QUdpSocket, you can also establish a virtual connection to a UDP server using connectToHost() and then use read() and write() to exchange datagrams without specifying the receiver for each datagram.

The {network/broadcastsender}{Broadcast Sender} and {network/broadcastreceiver}{Broadcast Receiver} examples illustrate how to use QUdpSocket in applications.