Giter VIP home page Giter VIP logo

evpp_sync's Introduction

evpp_sync

在evpp网络库的基础上,实现同步请求的发送接收封装

依赖

  • evpp: 使用vcpkg安装: vcpkg.exe install evpp
  • c++11: visual stuido 2015以上

底层报文结构

|size|tag|type|session|reqidx|data|
size: 报文长度,用于拆分数据流
tag: 特殊标记,校验使用
session: 会话编号
reqidx: 请求编号
data: 消息体

TODO

  • 优化,减少内存的memcpy
  • server只能可单个客户端通信
  • 修改tag值位校验位,确保传输正确
  • 添加线程池支持,当前请求处理在io线程中

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.