QUdpSocket and readDatagram
I looked at the documentation for readDatagram and it states the following:
"Receives a datagram no larger than maxSize bytes and stores it in data. Returns the size of the datagram on success; otherwise returns -1."
Let's say I have an incoming datagram from an open socket. What exactly does this method do for it?
It will read as much data from the datagram as possible up to maxSize
And what variable does it actually store the datagram in?
The one you give it