qt5base-lts/src
Shane Kearns fe56131236 Optimisation - buffer packet read in pendingDatagramSize
In Symbian, the OS function to get the size of a pending datagram also
includes the size of the packet header (which is different for IPv4 and
IPv6). We were reading the datagram with the "peek" flag set to
implement pendingDatagramSize, then reading again normally when the
client called read/readDatagram.

This change removes the "peek" flag, and buffers the datagram in the
socket engine, returning it and clearing the buffer when read or
readDatagram is called.
If there is no buffered data, the existing code path is followed - it
isn't mandatory to call pendingDatagramSize before reading from the
socket.

Reviewed-by: Markus Goetz
(cherry picked from commit dd8de4c2437397748daba49569cbc7f89a8bfbee)
2011-05-11 16:37:23 +02:00
..
3rdparty Don't rely on uninitialized data 2011-05-10 12:54:55 +02:00
corelib Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging 2011-05-11 23:47:33 +10:00
dbus Add QT_xxx_VERSION macros for each library in qtbase 2011-05-10 15:15:15 +02:00
gui Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging 2011-05-11 23:47:33 +10:00
modules Move private headers into versioned subdirectory 2011-05-02 15:30:08 +02:00
network Optimisation - buffer packet read in pendingDatagramSize 2011-05-11 16:37:23 +02:00
opengl Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging 2011-05-11 22:30:28 +10:00
openvg Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-earth-staging 2011-05-11 00:10:15 +10:00
plugins Prevent crash in wayland mimedata in case there is no offer. 2011-05-10 18:03:43 +02:00
s60installs Fix OpenGL build break on Symbian 2011-05-10 12:54:45 +02:00
s60main Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
sql Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-earth-staging 2011-05-11 00:10:15 +10:00
testlib Add QT_xxx_VERSION macros for each library in qtbase 2011-05-10 15:15:15 +02:00
tools uic: Remove Q3Support. 2011-05-06 09:32:09 +02:00
uitools BC cleanup in uitools. 2011-05-04 16:23:51 +02:00
winmain Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
xml Add QT_xxx_VERSION macros for each library in qtbase 2011-05-10 15:15:15 +02:00
qbase.pri Move private headers into versioned subdirectory 2011-05-02 15:30:08 +02:00
qt_install.pri Install private headers into the correct location 2011-05-07 22:10:54 -05:00
qt_targets.pri Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
src.pro Move uitools from QtTools to QtBase 2011-04-27 12:05:52 +02:00