summaryrefslogtreecommitdiffstats
path: root/src/remoteobjects/qconnection_tcpip_backend.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Update commercial SPDX-License-Identifier"Tarja Sundqvist2025-01-031-1/+1
| | | | | | | | | | This reverts commit a2159bed64ee183230fa0691319bfbafaffa1821. Revert of commercial SPDX license identifiers is required for the Qt 6.5.x opensource releases, Qt 6.5.4 onwards. Change-Id: I5f5b33fa20ffd2372f33c514ab8a87e7d4ffd8a1 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Update commercial SPDX-License-IdentifierTarja Sundqvist2023-11-141-1/+1
| | | | | | | | | | Updated the commercial SPDX-License-Identifier to the files in tqtc-qtremoteobjects. Examples, tests, or documentation files are not updated. Task-number: QTQAINFRA-5900 Change-Id: If04faf7617c8c83f0c25a4e04b4d38b6c15f1368 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Fix a crash due to null QHostAddress in the TCP/IP backendFriedemann Kleint2023-11-111-8/+9
| | | | | | | | | | | | | | When called in boot phases of embedded devices, host name resolution can fail, resulting in an assert/crash. Bail out with a warning instead. Pick-to: 6.2 5.15 Fixes: QTBUG-116151 Change-Id: I1d8465bd35ff250d3a4b9dbde53bd6634ae70fc6 Reviewed-by: Brett Stottlemyer <bstottle@ford.com> (cherry picked from commit 65dbc006c81ccaea6af5f0b1e2425cfdb2158325) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 505c50ce8acb4785811b803752bb9e1cf1feb116)
* Use SPDX license identifiersLucie Gérard2022-06-141-38/+2
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: I315d7ce1d6c6c3497afdfe8b61a113fdc181c935 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Fix reconnect to replaced server nodeBernd Weimer2021-10-251-1/+1
| | | | | | | | | | | When a host node was deleted the QTcpServer wasn't destroyed, because it wasn't parented to the actual remote objects TcpServerImpl. Fixes: QTBUG-97688 Pick-to: 5.15 6.2 Change-Id: Ib28f7d8d20f0d7bfd032c5736d6347f2f3f0c6f6 Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Rename the classes for adding a custom transport supportSona Kurazyan2021-06-171-6/+6
| | | | | | | | | | | | | Added QtRO prefix to IoDeviceBase, ServerIoDevice and ClientIoDevice classes. These classes are exported and can be used externally for supporting a custom transport by deriving from them and implementing the virtual methods. Added the prefix also to ExternalIoDevice, to keep the naming consistent. Pick-to: 6.2 Change-Id: I64845cff55687a127d2c43de03ecc65ac9bd321b Reviewed-by: Brett Stottlemyer <bstottle@ford.com> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* Clean-up integer conversion warningsSona Kurazyan2021-02-261-2/+2
| | | | | Change-Id: Ib1229eb973066a7500cb759082a1a3a7ce978bfa Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* QAbstractSocket: fix deprecation warnings from the error signalMårten Nordheim2020-03-231-1/+1
| | | | | | | Task-number: QTBUG-82605 Change-Id: Iec79cebddaf58ec352243b44eeb1d52e0ddacf67 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Fix include directivesFriedemann Kleint2019-01-181-1/+1
| | | | | | | | | | Always prepend the module and use headers directly. Qt for Python requires the modules to be present. Task-number: PYSIDE-862 Fixes: QTBUG-72675 Change-Id: I94e38fbab0f041370ca9d67ca13c78f0d33816b7 Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Attempt reconnection for QAbstractSocket::NetworkErrorMichael Brasser2018-10-241-0/+1
| | | | | | | | | When working with multiple devices on a TCP/IP network, avoid potential ordering issues that could occur with devices being brought up in different orders. Change-Id: Ibb4e8e4cfce3ddeadb7866a670f9fdec063f9ea5 Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Refactor connection factories to shared base classBrett Stottlemyer2018-06-291-4/+2
| | | | | | | | | There was a lot of duplicate code, and having a common base class makes it easier to extend (in future changesets) to support connections made outside of QtRO. Change-Id: Ie2a436132df2f4c7a2503a67b4f8fc2b9e18ef4e Reviewed-by: Michael Brasser <michael.brasser@live.com>
* Say hello to QRemoteObjectNode::heartbeatInterval propertyBogDan Vatra2017-12-081-0/+5
| | | | | | | | | | This property can be used to periodically check the connection between the replica and the source. If the connection is lost, the replica enters in the "Suspect" state and will attempt to reconnect. Task-number: QTBUG-64086 Change-Id: Icf67e173073c9d277575c8faf01a0a1ffab5bc07 Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Merge remote-tracking branch 'origin/5.10' into devLiang Qi2017-11-241-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/remoteobjects/qremoteobjectabstractitemmodeladapter_p.h src/remoteobjects/qremoteobjectdynamicreplica.cpp src/remoteobjects/qremoteobjectnode_p.h src/remoteobjects/qremoteobjectregistry.cpp tests/auto/auto.pro tools/repc/repcodegenerator.cpp Done-with: BogDan Vatra <bogdan@kdab.com> Change-Id: I9d0230736b768eac44b06376aeaab1b0b09eb22a
| * Fix clazy-detaching-temporaryFriedemann Kleint2017-10-191-1/+1
| | | | | | | | | | Change-Id: I9429533aefa4b006e7e1e74e19152dc138ad54ca Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* | qconnectionfactories: Const'ify where possibleKevin Funk2017-09-281-13/+14
|/ | | | | | Change-Id: Iddb610ccda251b20385dbde281b8cbc928e86e30 Reviewed-by: Michael Brasser <michael.brasser@live.com> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Correct QtRO license headers and added missing license filesv5.9.0-beta4Jani Heikkinen2017-05-021-13/+19
| | | | | | | | | | | | | Unify licensing as it is in other submodules - Src is licensed under Commercial, LGPLv3, GPLv2 and GPLv3 licenses - Examples are licensed under Commercial and BSD licenses - Tools and tests are licensed under commercial and GPLv3 license with some exceptions Task-number: QTBUG-58921 Change-Id: I4494bf8b705568b243340c98316bedd706145db5 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Replace Q_NULLPTR -> nullptrKevin Funk2017-03-291-1/+1
| | | | | | | | Skip the moc/ directory intentionally, since it contains third-party code Change-Id: I97105e475c109231e001dc4525b3096a06601868 Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Load backends properly in Qt static buildsKevin Funk2017-03-241-3/+0
| | | | | | | | | | | | We need a proper way to register the Client/Server backends. Registration via static initialization will not, thus turn the Client/Server factories into a global singleton and attempt to register the Client/Server backends whenever the create-function is called. Change-Id: I1c2fb5ad1e742e6480148254fe774ce2a1c6630f Task-number: QTBUG-59464 Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Fixes for license checkBrett Stottlemyer2017-01-141-21/+13
| | | | | | | | Change-Id: I3cf39180b08b80ea65c46e7b6a9e81f3aa79d1af Reviewed-by: Kevin Funk <kevin.funk@kdab.com> Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Add QNX-specific backendBrett Stottlemyer2016-03-191-1/+1
| | | | | | | | | | | Provide a backend using QNX Native Messaging. Change-Id: Ie93ba5483573b35c0a9fe31c57a710b1163b4901 Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Brett Stottlemyer <bstottle@ford.com> Reviewed-by: James McDonnell <jmcdonnell@qnx.com> Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
* Fix TcpClientIo behaviorBrett Stottlemyer2016-02-021-2/+3
| | | | | | | | | | | | | There is another patch coming that refactors the integration test so it runs (completely) against each backend. This change is needed to make the delayedRegistryTest() pass for the tcp backend, as without these mods, the logic to attempt to reconnect was not working. Change-Id: Id289135d0f7785e0ae1cdb0cac83499765f31c2e Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Michael Brasser <michael.brasser@live.com>
* add some includes to fix the compileAllen Winter2015-12-021-0/+2
| | | | | | Change-Id: I4672f56750f69ba5c0e05802319a5ef814dc2a76 Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Make connection-factories publicBrett Stottlemyer2015-12-021-0/+210
This is a large change, but it is completely a refactoring of code, not code changes. The connectionfactory classes are now public and describe the connection backends (local and tcp/ip). Instead of putting the client code in a set of files and the server code in a set of files, we have local_backend and tcpip_backend which include both client/server code. The packet type enums were moved to the global header file to make them available to additional backends. Change-Id: I83efc9c1f2013f41f97a4350a31a708f484749e4 Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Kevin Funk <kevin.funk@kdab.com> Reviewed-by: Allen Winter <allen.winter@kdab.com> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>