Giter Site home page Giter Site logo

murpc's Introduction

murpc

C++语言开发的一个RPC调用框架,网络部分采用muduo网络库,数据序列化和反序列化采用protobuf,服务配置中心采用zookeeper

环境

需要安装protobuf、zookeeper以及muduo网络库环境

项目文件介绍

bin:test文件夹测试代码生成的可执行文件
lib:rpc框架生成的静态库,可以直接链接使用
build:cmake编译生成的中间文件
src:rpc框架源代码
test:rpc框架测试代码
thirdparty:第三方代码,这里主要用了tinyxml

编译

项目采用cmake编译,可以在项目根目录执行下面一键编译
./autobuild.sh

运行

1.先启动zookeeper
2.启动rpc_server,注意同级目录下需要加载配置文件rpc_cfg.xml,里面主要包含RpcServer和zookeeper的数据配置
3.启动rpc_client,注意同级目录下需要加载配置文件rpc_cfg.xml,里面主要包含zookeeper的数据配置

murpc's People

Contributors

fixbug666 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.