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++
Residential Proxy Infrastructure EngineerWe're building a residential proxy network from scratch — fully owned, no third-party suppliers. We need one exceptional network engineer to build the entire technical foundation. What you'll build: - Android background SDK that routes proxy traffic through user devices… C & C++, DevOps ∙ 4 days 2 hours back ∙ 13 proposals |
Improvement in the existing version of 1C retail block for the distribution center (DC)In general, I will explain what kind of database we have - There is a main server where there is a retail database (where all receipts are recorded) - a UTP database - where all sales are transferred - it calculates the markup and stock balances - small databases of retail… C & C++, C# ∙ 4 days 17 hours back ∙ 6 proposals |
About the Master Program "KONSTRUCTOR"
4182 USD
We are looking for a very experienced C++ developer to modernize existing software (master program). The program is responsible for creating derivative software representing audio-visual sessions of psychological correction. The current version is written in pure WinAPI (Visual… C & C++, Desktop Apps ∙ 9 days 20 hours back ∙ 19 proposals |
Writing code for ArduinoIt is necessary to develop software for a weight dispenser based on Arduino Uno. Components: Arduino Uno R3 HX711 + load cell LCD1602 I2C display MAX7219 LED matrix 8x32 5 control buttons 4-channel relay 2 signal lamps Coarse dosing vibrator Precise dosing vibrator Operation… C & C++, Embedded Systems & Microcontrollers ∙ 11 days 5 hours back ∙ 15 proposals |
It is necessary to complete the project or provide consultation.
23 USD
|