|
|
3 tahun lalu | |
|---|---|---|
| .. | ||
| CMakeLists.txt | 3 tahun lalu | |
| README.md | 6 tahun lalu | |
| constants.proto | 7 tahun lalu | |
| makefile | 7 tahun lalu | |
| sec0.proto | 7 tahun lalu | |
| sec1.proto | 7 tahun lalu | |
| sec2.proto | 3 tahun lalu | |
| session.proto | 3 tahun lalu | |
Protocomm uses Google Protobuf for language, transport and architecture agnostic protocol communication. These proto files define the protocomm packet structure, separated across multiple files:
Note : These proto files are not automatically compiled during the build process.
Compilation requires protoc (Protobuf Compiler) and protoc-c (Protobuf C Compiler) installed. Since the generated files are to remain the same, as long as the proto files are not modified, therefore the generated files are already available under components/protocomm/proto-c and components/protocomm/python directories, and thus running cmake / make (and installing the Protobuf compilers) is optional.
If using cmake follow the below steps. If using make, jump to Step 2 directly.
When using cmake, first create a build directory and call cmake from inside:
mkdir build
cd build
cmake ..
Simply run make to generate the respective C and Python files. The newly created files will overwrite those under components/protocomm/proto-c and components/protocomm/python