QUdpsocket losses datagrams while processing previous one
<p>Im sending not packed image (bmp) data from one application(unity) to another (QT) via udp splitting in frames (50Kb) and adding frameId to data.
On other side I'm trying to integrate frames (using frameId) and after i collected all frames of one image I process it as image.
If Im just catching frames and do not process them Im getting data in right sequence</p>

<pre><code>void Server::readPendingDatagrams()
{
    if (udpSocket-&gt;hasPendingDatagrams()) {
        QByteArray datagram;
        datagram.resize(udpSocket-&gt;pendingDatagramSize());
        QHostAddress sender;
        quint16 senderPort;

        udpSocket-&gt;readDatagram(datagram.data(), datagram.size(),
                                &amp;sender, &amp;senderPort);
        qDebug()&lt;&lt;datagram[0]; //frameId
        //processTheDatagram(datagram);
    }
}
</code></pre>

<p>I see "1 2 3 4 5 1 2 3 4 5 1 2 3 4 5" in console
but if I uncomment processTheDatagram(datagram);
I'm getting "1 3 4 1 2 4 2 4 5 2 3 5"
it losses data while processing previous datagram.
Where is the problem??
in udp buffer?</p>