aboutsummaryrefslogtreecommitdiffstats
path: root/src/coap/coap.pro
Commit message (Collapse)AuthorAgeFilesLines
* Remove qmake project filesJoerg Bornemann2021-04-301-55/+0
| | | | | | | Task-number: QTBUG-88742 Change-Id: I250bae28b177999c821c8aeec6b25c8885c2364a Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
* Rename QCoapDiscoveryReply -> QCoapResourceDiscoveryReplySona Kurazyan2019-05-141-4/+4
| | | | | | | This change is based on the feedback from API review. Change-Id: I43f08d5bd7f7f172ea4d337718be7bd14e81d64c Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Hide internally used methods from QtCoap namespaceSona Kurazyan2019-05-141-0/+1
| | | | | | | | | Additionally rename responseCodeError() -> errorForResponseCode(). This change is based on the feedback from API review. Change-Id: Ida63a854f628d3d92a93bd54bd80f2368de48d8d Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Hide the API of QCoapProtocolSona Kurazyan2019-05-141-1/+0
| | | | | | | | No need to keep this class public, there is no public API for accessing it anyway. Change-Id: I231a560becb5799667819c30eca6372282adeb41 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Hide the APIs of QCoapConnection and QCoapQUdpConnectionSona Kurazyan2019-05-141-2/+0
| | | | | | | | | | | | At the moment only the QCoapQUdpConnection class implements the QCoapConnection interface. If later we decide to add other implementations, and it turns out that the current API is not good enough, it won't be possible to change it without breaking the source compatibility. Let's make these classes private, we can make them public when there is a need for it. Change-Id: I41336dda0e6eaa762f0eb9c8f4aa98a9c7b62a2c Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Move the declaration of QCoapInternalMessage to the private headerSona Kurazyan2019-04-261-1/+0
| | | | | | | | This class is intended for internal use only, so it should not have a public header. Change-Id: I18f2433d06e978582b470e14dc89a7c0e404f7d4 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Change QtCoap to be a namespace and improve the docsSona Kurazyan2019-03-041-0/+1
| | | | | | | | | | | | | - QtCoap was changed to be a namespace instead of a class. - Moved the static QtCoap::randomGenerator to a method returning a reference to a local static object. - The corresponding documentation and function definitions were moved to its .cpp file. - Added the missing documentation. Change-Id: Ie0c60189b18b8f5e8d9a94f91b6fb7b9259984dd Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Add DTLS support to CoAP implementationv5.13.0-alpha1Sona Kurazyan2019-01-301-19/+24
| | | | | | | | | | | | | | | | | | | | | | | | | Added transport layer security based on QDtls. This implementation supports authentication using pre-shared keys and X.509 certificates. Split the QCoapConnection class into a base class to be shared with other transports and a specialized class that relies on QUdpSocket using QDtls for security. Note, that raw public key mode (which is mandatory to implement according to RFC) is not implemented yet, since the underlying OpenSSL library does not support it yet. However, if we later decide to integrate another DTLS implementation, it can be done with minimal changes, by having the new implementations's connection type inherit the QCoapConnection class, which hides the implementation of the transport layer. Tests and examples will be added in a later commit. Change-Id: I14b34a9fd978e1993e86d47becbeed74397d1d6e Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Doc: Add a documentation projectLeena Miettinen2019-01-171-0/+2
| | | | | | | | | A configuration file and some standard topic files are needed for building the documentation. Change-Id: Id4ecc9cde7487f998f31dfdc984d7214e329a8fd Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
* Add the CoAP module, providing a client for QtAdrien Leravat2018-12-141-0/+50
Features: - Send GET/POST/PUT/DELETE requests - Discover resources (single server) - Observe resources and cancel the observation - Blockwise requests and replies - Requests (and replies) can be confirmable or non-confirmable - Some options can be added to the request - Replies can be received in a separate or piggybacked message Change-Id: I31e0e20a4f19bdc6d6489281fde73a4ff848eda4 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>