qt5base-lts/tests/auto/network/socket/qsocks5socketengine
Thiago Macieira 89efa7333d QAbstractSocketEngine: introduce QIpPacketHeader for datagrams
This commit changes the readDatagram() and writeDatagram() virtual
functions to take a QIpPacketHeader as meta data, instead of a
QHostAddress/quint16 pair. As previously, the header is an "out"
parameter for readDatagram() and an "in" parameter for writeDatagram().

The header pointer in readDatagram() is allowed to be null if the
PacketHeaderOptions indicates WantNone. Otherwise, it must not be null.
The extra options parameter is introduced because we may not always want
all the metadata upon reception. For sending, we know what to include or
not based on what's set in the incoming header parameter.

QIpPacketHeader splits sender and destination because we'll be able to
return both on datagram reception.

Change-Id: Iee8cbc07c4434ce9b560ffff13ca4213255008c7
Reviewed-by: Richard J. Moore <rich@kde.org>
2015-08-22 22:26:23 +00:00
..
.gitignore
BLACKLIST Blacklist socks bind test on Windows 2015-06-20 15:25:39 +00:00
qsocks5socketengine.pro Remove the tests for Ubuntu Oneiric (11.10) 2015-03-17 01:26:13 +00:00
tst_qsocks5socketengine.cpp QAbstractSocketEngine: introduce QIpPacketHeader for datagrams 2015-08-22 22:26:23 +00:00