C++ web server with 2 endpoints
The web server must store the variable accounts in the format:
by {
“Account1”: true
“Account2”: true
“Account3”: true
“account125”: true,
The
The web server should have 2 endpoints:
1) setState - set the value { "account": true/false }
2) getState - obtaining the value of the account.
The behavior of the endpoint getState:
When getState is asked for a certain "accountN", it should be searched in the accounts object. If the accounts do not have a requested account or account: false - returns false. If the account is true. That answer should not be returned until the account becomes true.
The main objective is that the server processes requests for getState and setState simultaneously. But at the same time he returned the answer to getState only after state becomes false;
As a result, I need a .cpp extension file and instructions for compiling and installing libraries.
-

Насколько долго клиент при запросе к getState должен ждать изменения accountN? Хттп-клиенты обычно имеют таймаут ответа на запрос, поэтому надолго их задержать не получится. Тут вообще хттп запрос не особо подходит, ибо из внятных способов тут разве что поллить.
-
Current freelance projects in the category C & C++
Reverse engineering of console utilities for querying SSD controllers (Flash ID)1. Purpose of the work Extraction of the application programming interface (API) for interaction with SSD/NVMe controllers from the provided set of console utilities (Phison, Silicon Motion, Realtek, Maxiotek, Marvell, JMicron, etc.). The result should be working code in C/C++… C & C++, Desktop Apps ∙ 11 days 9 hours back ∙ 6 proposals |
Development of a Minecraft Java Seed Map / Seed Viewer for the websiteDevelopment of Minecraft Java Seed Map / Seed Viewer for the websiteProject Description A browser-based tool Minecraft Java Seed Map / Seed Viewer needs to be developed, which will work on our website and allow the user to enter a seed from Minecraft Java Edition and view an… C & C++, HTML & CSS ∙ 11 days 16 hours back ∙ 17 proposals |