Simple calculator. C++ project, built on Cmake, Catch and spdlog, boost, boost asio
Server accepts arithmetic expressions throught TCP socket.
Arithmetic expression may constist of +, -, *, /, (, ) and integer numbers
- Download this project:
git clone --recursive https://github.com/vadikrobot/asio-calc.git cd asio-calcmkdir build.release && cd build.releasecmake -DCMAKE_BUILD_TYPE=Release ..make -j4- to run server:
./asio-calc -p 8080 - server will listen on port 8080
- to test
netcat localhost 8080 <<< 2+2
- Download this project:
git clone --recursive https://github.com/vadikrobot/asio-calc.git cd asio-calcmkdir build.debug && cd build.debugcmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTS=True ..make -j4ctestor./asio-calc-test
- run server
- in separate console
cd asio-calc/expression_generator mkdir build && cd buildcmake -DCMAKE_BUILD_TYPE=Release ..make -j4./expression-generator 100 100000 > /tmp/exprnetcat localhost 8080 < /tmp/expr