Skip to content

Catstyle/libmaid

 
 

Repository files navigation

libmaid

a simple, light weight, general use and multiple language(c++, python, c#-unity3d) support of protobuf rpc service implement.

dependency

c++:

libuv, protobuf

python:

gevent, protobuf

c#:

.net2.0, protobuf-net

proto format

basic format:|----------4 bytes------------------|-----n bytes----|

description :|-ControllerProto length(Big Endian)-|-ControllerProto-|

Build && install

c++:

cmake .

make && make install


# unittest

cmake -Dmaid_build_tests .

make && make test

# example

g++ client.cpp *.pb.cc -luv -lprotobuf -lmaid -o client

g++ server.cpp *.pb.cc -luv -lprotobuf -lmaid -o server

./server

./client

About

a general use of rpc service, implement by libev & protobuf

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 57.2%
  • C# 23.4%
  • CMake 7.6%
  • Python 7.0%
  • Protocol Buffer 3.2%
  • Shell 1.4%
  • C 0.2%