QUdpSocket and readDatagram
General and Desktop
4
Posts
2
Posters
1.4k
Views
1
Watching
-
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?
-
Hi,
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