This library has been developed to transport GRPC packages or general data. The main purpose is to gain performance by using minimum HTTP/2 feature.
- Installing the protobuf-cpp
- Download protobuf-cpp-3.3.0.zip
- Extract it
unzip protobuf-cpp-3.3.0.zip cd protobuf-3.3.0
- Compile and Install
./autogen.sh ./configure make && make install
- Installing the protobuf-c
- set PKG_CONFIG_PATH (DONOT forget this step)
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
- Download protobuf-c-1.2.1.tar.gz
- Extract it
tar -xzvf protobuf-c-1.2.1.tar.gz cd protobuf-c-1.2.1
- Compile and install
./autogen.sh ./configure make && make install
- set PKG_CONFIG_PATH (DONOT forget this step)
comming soon.
Besides http/2, The GRPC will be used for composing data.
After installing the protobuf-cpp and protobuf-c, you can use protoc-c
command.
cd http2/proto
protoc-c --c_out=. helloworld.proto