|
|
### C/C++
|
|
|
|
|
|
#### Compilation
|
|
|
|
|
|
For usage within C/C++ projects, the code can be cloned and build by adding the folder to a [CMake](https://cmake.org/) project.
|
|
|
|
|
|
The code can be built as follows (starting from the repository's root):
|
|
|
|
|
|
```bash
|
|
|
cd build
|
|
|
cmake ..
|
|
|
make
|
|
|
```
|
|
|
|
|
|
The following compile-flags for CMake are supported:
|
|
|
|
|
|
* `DEBUG`: Enables the output of debug information.
|
|
|
* `XLAP`: Enables the cross layer timing analysis tool, which captures traces of packets throughout PRRT. The solution can be found at [here](http://xlap.larn.systems).
|
|
|
|
|
|
### Python
|
|
|
|
|
|
While the core protocol is written purely in C/C++, [Cython](http://cython.org/) is used to provide pythonic bindings for PRRT.
|
|
|
|
|
|
#### Setup
|
|
|
|
|
|
The protocol can be installed system-wide as follows:
|
|
|
|
|
|
```bash
|
|
|
python setup.py install
|
|
|
``` |
|
|
\ No newline at end of file |