Git Product home page Git Product logo

cymheart / tcpserver Goto Github PK

View Code? Open in Web Editor NEW
34.0 34.0 26.0 301 KB

使用c++设计实现了windows平台下基于iocp的tcp网络库,用于项目服务器,客户端等各种网络通信的基建,类似于目前流行的各大网络库,主要应用场景为客户端与服务端通信,数据传输下载,图像视频流网络传输等 这个项目的特点是架构上采用了任务消息队列分发接受数据流任务包的异步架构,支持协程处理数据包,化异步为同步处理,消息处理方面可以定制自己的包数据结构,通过继承消息处理基类,生成特定的包数据结构, 比如,自定义的游戏通信包,http包, websockt包,后两个包在库中有相应实现, 在接受数据包方面,是通过解包控制拼合出合适长度的数据包,任务消息队列可以定制多个数量(相当于生成多个处理指定socket任务的线程),以适配多个socket连接的分类通信,这种定制可以适应

C++ 6.73% C 91.54% Shell 1.49% Awk 0.25%

tcpserver's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tcpserver's Issues

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.