diff options
author | Peter Hartmann <phartmann@rim.com> | 2013-02-21 16:10:29 +0100 |
---|---|---|
committer | Peter Hartmann <phartmann@blackberry.com> | 2013-05-07 16:42:41 +0200 |
commit | c67554fc3148b9849f7010896dcb753a7fc8dfb8 (patch) | |
tree | c4ee2387e54fdc8cb304f03d2eddb8e0a9764cb4 /src/network/bearer/qnetworkconfiguration_p.h | |
parent | 6b2413cb386c718ad8974e55d5ab460b07c41a56 (diff) |
[BB10-internal] QAbstractSocket: delay bind for TCP and SSL sockets
... because we delete the socket engine anyhow when connecting; so we
just store the local address, port and bind mode and bind after we
deleted the socket engine and before we connect to the server.
*caveat*:
DNS traffic is still flowing over the standard interface, because there
seems to be no way to tell getaddrinfo() which route to use.
This change also requires the following changes:
- the socket engine needs to allow connections when in BoundState
- in bind(), we need to always set the local address and port from
the socket engine, so that in case the bind() failed we clear the
address and port again.
Change-Id: I883199a7869effc3a66f0ded37a949ba7cd95b3d
Signed-off-by: Peter Hartmann <phartmann@rim.com>
Diffstat (limited to 'src/network/bearer/qnetworkconfiguration_p.h')
0 files changed, 0 insertions, 0 deletions