This project relies on four dependencies:
- inih
- A header-only config file handle (https://github.com/jtilly/inih)
- spdlog
- A fast thread-safe logging library (https://github.com/gabime/spdlog)
- rpclib
- A simple c++ RPC library (http://rpclib.net/)
- picosha2
- The PicoSHA2 SHA-256 hash generator (https://github.com/okdshin/PicoSHA2)
You must use the same compiler to build the rpc library as you use for the rest of your project, otherwise you will get a series of errors. Thus to start working on the project, you need to re-build the rpc library.
To rebuild the library, do the following:
- cd dependencies/src
- tar -xzf cmake-3.13.2-Linux-x86_64.tar.gz
- tar -xzf rpclib.tar.gz
- cd rpclib
- mkdir build
- cd build
- ../../cmake-3.13.2-Linux-x86_64/bin/cmake ..
- ../../cmake-3.13.2-Linux-x86_64/bin/cmake --build .
- (note the dot after --build)
- cp librpc.a ../../../lib/
OK you should be set. Proceed to testing your starter code.
Run server in a window
- ./ssd myconfig.ini
In another window, run the client:
- ./ss myconfig.ini