qt5base-lts/tests/auto/network/socket/qudpsocket
Thiago Macieira 9fb68a90af Fix bind+connect in both TCP and UDP
This has been known to be broken for a while. Now it works: you can bind
and you'll retain the port (and the file descriptor) for the connect
call. Incidentally, in fixing the binding for more than one IP for the
hostname (with event loop), this commit fixes the setSocketDescriptor
XFAIL.

[ChangeLog][QtNetwork] Fixed a bug that caused both QTcpSocket and
QUdpSocket to close the socket and lose any bound ports before
connecting. Now bind()/setSocketDescriptor() followed by connect() will
retain the original file descriptor.

Task-number: QTBUG-26538
Change-Id: I691caed7e8fd16a9cf687b5995afbf3006bf453a
Reviewed-by: Richard J. Moore <rich@kde.org>
2015-03-04 23:58:03 +00:00
..
clientserver Update copyright headers 2015-02-11 06:49:51 +00:00
test QtNetwork tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2014-02-25 16:47:13 +01:00
udpServer Update copyright headers 2015-02-11 06:49:51 +00:00
.gitignore Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
qudpsocket.pro Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
tst_qudpsocket.cpp Fix bind+connect in both TCP and UDP 2015-03-04 23:58:03 +00:00