diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2010-12-06 15:47:40 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2010-12-06 15:47:40 (GMT) |
commit | 8dacbccfd89006d1571b3b6ab6e96ea13e74f455 (patch) | |
tree | 9e8c83ca5c27cbb728908dd3b1b77c6d3f7a15fe /src | |
parent | 7ec11a51d564c85d46ddee270cf7c743a2cbd320 (diff) | |
download | Qt-8dacbccfd89006d1571b3b6ab6e96ea13e74f455.zip Qt-8dacbccfd89006d1571b3b6ab6e96ea13e74f455.tar.gz Qt-8dacbccfd89006d1571b3b6ab6e96ea13e74f455.tar.bz2 |
Set preferences in socket server Connect()
Tell the socket server we intend to use this session mainly for IP
This allows the socket server to optimise this session for IP usage.
Reviewed-by: Markus Goetz
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/kernel/qcore_symbian_p.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/corelib/kernel/qcore_symbian_p.cpp b/src/corelib/kernel/qcore_symbian_p.cpp index 809dc30..b6688f7 100644 --- a/src/corelib/kernel/qcore_symbian_p.cpp +++ b/src/corelib/kernel/qcore_symbian_p.cpp @@ -44,6 +44,7 @@ #include <e32uid.h> #include "qcore_symbian_p.h" #include <string> +#include <in_sock.h> QT_BEGIN_NAMESPACE @@ -218,7 +219,11 @@ Q_CORE_EXPORT RFs& qt_s60GetRFs() QSymbianSocketManager::QSymbianSocketManager() : iNextSocket(0) { - qt_symbian_throwIfError(iSocketServ.Connect()); + TSessionPref preferences; + // ### In future this could be changed to KAfInet6 when that is more common than IPv4 + preferences.iAddrFamily = KAfInet; + preferences.iProtocol = KProtocolInetIp; + qt_symbian_throwIfError(iSocketServ.Connect(preferences)); qt_symbian_throwIfError(iSocketServ.ShareAuto()); } |