Commit Graph

20 Commits

Author SHA1 Message Date
Leonid Stryzhevskyi
f0ae36e086 move 'oatpp/core/macro/*' --> 'oatpp/macro/*' 2024-04-23 02:01:31 +03:00
Michel Wohlert
d427e200e9
Allow overriding DI injected variables in ClientServerTestRunner
Move OATPP_COMPONENT calls to constructor to allow supplying variables without using DI
2023-11-14 13:37:04 -08:00
Ferry Huberts
aa02f4bb3f Fix Clang compiler warnings (-Wextra-semi-stmt)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-09-02 23:12:26 +02:00
Ferry Huberts
6dfe302829 Fix compiler warnings (-Wsuggest-attribute=format)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-16 13:56:27 +02:00
lganzzzo
f43f3fe661 HttpRouter: better API. 2021-10-25 02:19:13 +03:00
Benedikt-Alexander Mokroß
dbd02bb98d Merge remote-tracking branch 'origin/conditional_server_run' into conditional_server_run 2021-01-04 09:37:08 +01:00
Benedikt-Alexander Mokroß
de2f6cd59c Replaced erroneous pass-by-value with pass-by-reference in ClientServerTestRunner.hpp that prevented shutting down the server correctly. 2021-01-04 09:36:55 +01:00
Benedikt-Alexander Mokroß
ba5e582bc8 Implemented review changes from @lganzzzo and marked run(bool) as deprecated 2020-12-31 22:03:40 +01:00
Benedikt-Alexander Mokroß
86ae1132ca WIP/Discussion: Let server check an (optional) condition if it should continue to loop.
Instead of an external invocation of `stop()` to stop a running server, one could pass an lambda that returns true when the server should continue to run or false if it should stop.
Ideally this function should return as fast as possible and only do minimal amount of work. Like an interrupt function in µC.
This would ease the implementation of simple stopping mechanism that do not require external threads or other management.
For more complex functions, the minimal `bool()` function can be bound with `std::bind` to pass parameters etc.
2020-12-29 14:26:55 +01:00
lganzzzo
05d5e4dd4f oatpp::network. Refactor: move/rename SimpleTCPConnectionProvider, Connection, ConnectionHandler, Server. 2020-09-27 02:47:30 +03:00
lganzzzo
e889642188 network::ConnectionProvider. Basic refactoring - extend provider::Provider, new method names. 2020-07-29 02:03:26 +03:00
lganzzzo
c9aeb9337f fix thread sanitizer warnings 2019-10-31 03:17:59 +02:00
Benedikt-Alexander Mokroß
b583052b2e Warningless in -Wextra, hardened sprintf-calls. 2019-08-12 09:18:49 +02:00
lganzzzo
c54dbe662c proper server stoppage in Full-Tests with real port 2019-04-29 02:56:53 +03:00
lganzzzo
4b3ea45ec0 remove timer-wait in ClientServerTestRunner - join threads instead 2019-04-27 03:39:47 +03:00
lganzzzo
b3b45593f1 include thread in ClientServerTestRunner 2019-04-06 04:55:02 +03:00
lganzzzo
70da953b0f fix ubuntu build 2019-02-23 17:26:48 +02:00
lganzzzo
9efb58fc02 Better ClientServerTestRunner 2019-02-23 16:53:07 +02:00
lganzzzo
f7ce8ea873 better test framework. + ClientServerTestRunner 2019-02-23 02:43:15 +02:00
lganzzzo
1c4fb11296 ClientServerTestRunner draft 2019-02-22 19:18:59 +02:00