Giter Site home page Giter Site logo

dan_server's Introduction

一个非常早期的demo

依赖:
    protobuf

使用:
    cd dan_simple_server/src/proto/deps
    获取protobuf 3.x c++ 并解压
    mv 解压得的文件夹 protobuf
    打开protobuf
    ./autogen.sh
    ./configure CXXFLAGS=-fPIC --prefix=[当前目录绝对路径]
    make && make install

    0. cd dan_simple_server
        mkdir build
        cd build;cmake ..

    1. 添加proto中的协议 
        1.1 说明一下规则: package名对应mod名  message名对应mod处理函数
    2. 运行gen_mod
        2.1 自动生成和proto对应的消息
    3. 修改mod中
        3.1 添加和修改消息处理函数
        3.2 消息id对应message

例子:
    请查看mod/mod_lulu和 proto/lulu.proto

dan_server's People

Contributors

dan-and-dna avatar

Watchers

 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.