qt5base-lts/tests/auto/network/socket
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
..
platformsocketengine Update copyright headers 2015-02-11 06:49:51 +00:00
qabstractsocket Update copyright headers 2015-02-11 06:49:51 +00:00
qhttpsocketengine Update copyright headers 2015-02-11 06:49:51 +00:00
qlocalsocket Update copyright headers 2015-02-11 06:49:51 +00:00
qsocks5socketengine Update copyright headers 2015-02-11 06:49:51 +00:00
qtcpserver Update copyright headers 2015-02-11 06:49:51 +00:00
qtcpsocket Fix bind+connect in both TCP and UDP 2015-03-04 23:58:03 +00:00
qudpsocket Fix bind+connect in both TCP and UDP 2015-03-04 23:58:03 +00:00
socket.pro WinRT: Fixed compilation of network autotests and benchmarks 2013-12-06 15:06:47 +01:00