path: root/src/network/socket/qlocalserver_win.cpp
diff options
authorAndrew Stanley-Jones <>2012-02-09 15:51:22 +0100
committerQt by Nokia <>2012-02-15 02:36:02 +0100
commit980947122307797e1d8da03f768d8f14a360d20b (patch)
tree309b9a526c1563def2018d649dc536c82b926cdb /src/network/socket/qlocalserver_win.cpp
parentfc8f92106d6743d4165de7d8a440b7e5dbd14391 (diff)
Allow the QLocalServer to listen to a native descriptor
QLocalServer could only listen to sockets it created. Thi is not always possible as sockets may be passed by socketpair() or have to be created locally by other means. This adds a similar feature to QLocalSocket where a native descriptor maybe used. Change-Id: I43b0af179b3b868dd164d4e1fd312ff4546cf9ff Reviewed-by: Michalina Ziemba <> Reviewed-by: Tapani Mikola <> Reviewed-by: Harald Fernengel <>
Diffstat (limited to 'src/network/socket/qlocalserver_win.cpp')
1 files changed, 6 insertions, 0 deletions
diff --git a/src/network/socket/qlocalserver_win.cpp b/src/network/socket/qlocalserver_win.cpp
index 67e319cdbb..07357e5789 100644
--- a/src/network/socket/qlocalserver_win.cpp
+++ b/src/network/socket/qlocalserver_win.cpp
@@ -144,6 +144,12 @@ bool QLocalServerPrivate::listen(const QString &name)
return true;
+bool QLocalServerPrivate::listen(qintptr)
+ qWarning("QLocalServer::listen(qintptr) is not supported on Windows QTBUG-24230");
+ return false;
void QLocalServerPrivate::_q_onNewConnection()