diff options
author | Nedim Hadzic <nhadzic@blackberry.com> | 2014-02-21 11:56:12 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-26 15:18:31 +0100 |
commit | 5e1c579d620655bb32019eaabe3297e780cefe13 (patch) | |
tree | b5c0960f683af945d8a1c27e3e13262820d3ed66 | |
parent | 330beaf713e27146fb95b7e2b3429edd76835c8a (diff) |
Max pending connection check for QNX server implemented
Max pending connections was ignored when adding new connections.
Change-Id: I96b1ae87254a772008b18a662faa7bc2bd84164b
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
-rw-r--r-- | src/bluetooth/qbluetoothserver.cpp | 2 | ||||
-rw-r--r-- | src/bluetooth/qbluetoothserver_qnx.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothserver.cpp b/src/bluetooth/qbluetoothserver.cpp index 3a7e495f..a7ceff64 100644 --- a/src/bluetooth/qbluetoothserver.cpp +++ b/src/bluetooth/qbluetoothserver.cpp @@ -132,6 +132,8 @@ QT_BEGIN_NAMESPACE Sets the maximum number of pending connections to \a numConnections. If the number of pending sockets exceeds this limit new sockets will be rejected. + QNX platform supports only one device at the time and it will ignore this value. + \sa maxPendingConnections() */ diff --git a/src/bluetooth/qbluetoothserver_qnx.cpp b/src/bluetooth/qbluetoothserver_qnx.cpp index 3f67d59d..445c57b1 100644 --- a/src/bluetooth/qbluetoothserver_qnx.cpp +++ b/src/bluetooth/qbluetoothserver_qnx.cpp @@ -197,7 +197,7 @@ bool QBluetoothServer::listen(const QBluetoothAddress &address, quint16 port) void QBluetoothServer::setMaxPendingConnections(int numConnections) { Q_D(QBluetoothServer); - d->maxPendingConnections = numConnections; //Currently not used + //QNX supports only one device at the time } QBluetoothAddress QBluetoothServer::serverAddress() const |