Skip to content

pepsi7959/http2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP/2

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.

Prerequisite

How To Install

  • 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

Example

comming soon.

GRPC

Besides http/2, The GRPC will be used for composing data.

Generate source files from .proto

After installing the protobuf-cpp and protobuf-c, you can use protoc-c command.

cd http2/proto
protoc-c --c_out=. helloworld.proto

Releases

No releases published

Packages

No packages published