Korina Šimičević
4cbae1056b
#includes revision and housekeeping
...
Summary: related to T13767
Reviewers: ivica
Reviewed By: ivica
Subscribers: iljazovic, miljen
Differential Revision: https://repo.mireo.local/D31700
2024-10-08 13:13:31 +02:00
Korina Šimičević
40b1f7e00c
Initiation lambdas replaced with classes with executor_type/get_executor
...
Summary:
related to #13 , T13767
`asio::cancel_at` and `asio::cancel_after` (coming with Boost 1.86) use associated executor
from the initiation object to construct the underlying timer.
Therefore, initiation lambdas are replaced with classes with executor_type/get_executor to allow that functionality
(like Asio/Beast).
Alternative solutions:
1) asio::bind_executor(get_executor(), initiation)
2) async_compose
Reviewers: ivica
Reviewed By: ivica
Subscribers: iljazovic, miljen
Differential Revision: https://repo.mireo.local/D30861
2024-08-09 09:01:45 +02:00
Korina Šimičević
0330df77a3
Add missing assignment operators
...
Summary:
related to T13767
- add missing assignment operators
- marked single argument constructors as explicit where needed
- add even more missing includes
Reviewers: ivica
Reviewed By: ivica
Subscribers: iljazovic, miljen
Differential Revision: https://repo.mireo.local/D30813
2024-08-08 10:59:38 +02:00
Korina Šimičević
7bc1ccf072
Add support for default completion tokens
...
Summary: related to #12 T13767
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen
Differential Revision: https://repo.mireo.local/D30725
2024-08-06 08:22:16 +02:00
Korina Šimičević
927c1c6e3a
Update license to BSL-1.0
...
Summary: related to T13767 T13767
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D29686
2024-05-27 10:59:59 +02:00
Korina Šimičević
b2338d4135
async_run's associated ex will not replace mqtt_client's default ex
...
Summary: related to T13767
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D29383
2024-05-13 08:56:20 +02:00
Bruno Iljazovic
701698e5ec
resend terminal disconnect
...
Summary:
- if we are in the process of connecting when user invokes async_disconnect we should send a disconnect packet after connect completes
- move integration disconnect tests to integration folder
Reviewers: ivica
Reviewed By: ivica
Subscribers: korina
Differential Revision: https://repo.mireo.local/D28119
2024-02-23 14:40:00 +01:00
Korina Šimičević
c51b570f6a
Document per-operation cancellation for all asynchronous operations
...
Summary:
related to T12804
- document per-operation cancellation for all async ops
- async_disconnect no longer copies documentation from other overload
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D28085
2024-02-22 13:10:58 +01:00
Korina Šimičević
634a4bdfa9
async_disconnect will close the connection regardless of the current connection state
...
Summary: related to T13761
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D28057
2024-02-22 12:14:24 +01:00
Bruno Iljazovic
1acdd99f28
Support multiple subscription identifiers in received messages.
...
Summary:
- refactor property encoding
- change user property type to be std::pair<std::string, std::string>
Reviewers: ivica
Reviewed By: ivica
Subscribers: korina
Differential Revision: https://repo.mireo.local/D27867
2024-02-16 10:59:07 +01:00
Korina Šimičević
b40ddb3ced
Separate tests to compile and run all configuration-related client functions
...
Summary: related to T12015
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D27945
2024-02-16 07:38:58 +01:00
Korina Šimičević
eb510ae1d4
Fixed inconsistencies in connect/connack property accessor function signatures
...
Summary: related to T11798
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D27941
2024-02-15 13:26:45 +01:00
Korina Šimičević
cfa2b76176
Remove unused cnf parameter in client_service
...
Summary: related to T13709
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D27895
2024-02-14 14:40:41 +01:00
Korina Šimičević
19aaba3cdc
Re-create client_service after stopping client's runloop and let it destroy asynchronously
...
Summary: related to T11798, #5
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D27882
2024-02-13 12:31:26 +01:00
Korina Šimičević
33c8eea890
Add function to set keep alive/ping interval
...
Summary:
related to T13566
- mqtt_client has a new keep_alive(seconds) function
- keep_alive(0) disables ping
- if keep_alive() is not called, the client assumes keep_alive=10
- the client respects server_keep_alive if sent by the broker
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D27557
2024-02-01 08:29:22 +01:00
Bruno Iljazovic
4f87b27861
async_run
...
Reviewers: ivica
Reviewed By: ivica
Subscribers: korina
Differential Revision: https://repo.mireo.local/D27342
2024-01-16 13:18:21 +01:00
Korina Šimičević
123e70d8fe
Improved CONNECT & CONNACK property client functions
...
Summary: related to T13427
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D27218
2024-01-05 08:03:38 +01:00
Korina Šimičević
7c0b9042d1
Allow user to modify CONNECT properties
...
Summary: related to T13332
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D27108
2023-12-22 14:07:05 +01:00
Korina Šimičević
97d8a4ea86
Validate control packet size
...
Summary: resolves T13332
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Maniphest Tasks: T13332
Differential Revision: https://repo.mireo.local/D27000
2023-12-22 10:00:53 +01:00
Korina Šimičević
9af32a942b
Properties & string validation
...
Summary: related to T13318
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D26975
2023-12-14 15:29:40 +01:00
Korina Šimičević
b275411ada
Validate subscribe requests
...
Summary: resolves T13305
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Maniphest Tasks: T13305
Differential Revision: https://repo.mireo.local/D26954
2023-12-14 08:41:04 +01:00
Korina Šimičević
e849166599
Downgrade C++ standard requirement to C++17
...
Summary: related to T13242
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D26860
2023-12-07 09:50:41 +01:00
Ivica Siladic
d9489597b3
Syntax consolidation.
2023-12-04 18:42:57 +01:00
Korina Šimičević
c18e5fc4f4
topic validation in subscribe, unsubscribe & publish
...
Summary: resolves T13170
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Maniphest Tasks: T13170
Differential Revision: https://repo.mireo.local/D26728
2023-11-29 11:52:16 +01:00
Korina Šimičević
b4f4cd0047
add a notification in receive channel when session resets
...
Summary: resolves T13152
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Maniphest Tasks: T13152
Differential Revision: https://repo.mireo.local/D26679
2023-11-23 15:46:30 +01:00
Korina Šimičević
5034734fc4
expose CONNACK properties
...
Summary: resolves T13155
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Maniphest Tasks: T13155
Differential Revision: https://repo.mireo.local/D26681
2023-11-23 13:45:14 +01:00
Bruno Iljazovic
a9dd6553f2
[mqtt-client] receive channel discards oldest message
...
Reviewers: ivica
Reviewed By: ivica
Subscribers: korina
Differential Revision: https://repo.mireo.local/D26538
2023-11-15 11:16:26 +01:00
Korina Šimičević
d1356b7bb7
[mqtt-client] added completion condition paragraph to async functions
...
Summary: related to T12804
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D26421
2023-11-13 08:05:30 +01:00
Bruno Iljazovic
22eb70617c
[mqtt-client] add support for re-authentication
...
Summary:
https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901257
Resolves T12899
Reviewers: ivica
Reviewed By: ivica
Subscribers: korina
Maniphest Tasks: T12899
Differential Revision: https://repo.mireo.local/D26414
2023-11-08 11:05:46 +01:00
Korina Šimičević
c8036c0d46
[mqtt-client] added chapter on different ways to establish network connection
...
Summary:
related to T12804
- added chapter on network connection
- added code examples
- remove any_authenticator from doc targets
- manually create table of contents
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D26401
2023-11-03 14:15:35 +01:00
Bruno Iljazovic
7e60e7a919
[mqtt-client] add support for enhanced authentication
...
Summary:
- Relates to T12899
- TODO: support re-authentication
Reviewers: ivica
Reviewed By: ivica
Subscribers: korina
Maniphest Tasks: T12899
Differential Revision: https://repo.mireo.local/D26327
2023-11-03 09:01:26 +01:00
Bruno Iljazovic
57349c587b
[mqtt-client] add move constructor
...
Summary: Resolves T12913
Reviewers: ivica
Reviewed By: ivica
Subscribers: korina
Maniphest Tasks: T12913
Differential Revision: https://repo.mireo.local/D26376
2023-11-02 13:31:41 +01:00
Korina Šimičević
e7227d70ec
[mqtt-client] coroutine & callback examples
...
Summary:
related to T12804
- added asio::no_recovery to list of possible error codes
- added examples with asio::use_awaitable and callbacks as completion tokens
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D26355
2023-11-02 08:01:03 +01:00
Korina Šimičević
9e0e57530c
[mqtt-client] user can only async_disconnect with rcs < 0x80, fix async_disconnect ecs
...
Summary: resolves T12974
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Maniphest Tasks: T12974
Differential Revision: https://repo.mireo.local/D26294
2023-10-27 11:38:37 +02:00
Korina Šimičević
2f1f910552
[mqtt-client] some doc fixes
...
Summary:
related to T12804
- b2 rebuilds when documented .hpp files are changed
- some text changes
- some link fixes
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen
Differential Revision: https://repo.mireo.local/D26240
2023-10-26 13:42:51 +02:00
ljudevit
bc882cb6ac
batch-sender
...
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen
Tags: #spacetime
Maniphest Tasks: T12651
Differential Revision: https://repo.mireo.local/D26172
2023-10-24 12:54:09 +02:00
Korina Šimičević
64cb24dbd6
[mqtt-client] doc generation no longer uses docca
...
Summary: related to T12804
Reviewers: ivica
Reviewed By: ivica
Subscribers: iljazovic, miljen
Differential Revision: https://repo.mireo.local/D26219
2023-10-24 07:59:52 +02:00
Korina Šimičević
7cb1a877a3
[mqtt-client] slightly better error code documentation
...
Summary: related to T12804
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D26165
2023-10-20 11:28:19 +02:00
Korina Šimičević
62d7eb21b2
[mqtt-client] A lot of various document changes
...
Summary:
related to T12804
- property files are now lowercase and match code names
- properties properly link to their pages
- packet names do not automatically link anymore
- TlsContext documented
- types inside handler signatures properly link to their pages
next up: better error code documentation
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D26155
2023-10-18 15:34:37 +02:00
Korina Šimičević
22f1330fed
[mqtt-client] reason codes & properties documented
...
Summary: related to T12804
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen
Differential Revision: https://repo.mireo.local/D26113
2023-10-17 09:29:12 +02:00
Korina Šimičević
3d3f7aeb94
[mqtt-client] documentation setup
...
Summary: related to T12804
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen
Differential Revision: https://repo.mireo.local/D26026
2023-10-13 09:38:20 +02:00
Korina Šimičević
83493c83d9
[mqtt client&test] #includes housekeeping
...
Summary: resolves T12777
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen
Maniphest Tasks: T12777
Differential Revision: https://repo.mireo.local/D25995
2023-10-06 12:31:55 +02:00
Korina Šimičević
2d957cd46f
[mqtt-client] boost-like project folder structure
...
Summary: resolves T12767
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen
Tags: #spacetime
Maniphest Tasks: T12767
Differential Revision: https://repo.mireo.local/D25970
2023-10-05 15:19:18 +02:00