Git Product home page Git Product logo

libwotdog's Introduction

lib加班狗

megascale_tcp_online_base_framework 底层libae以及libstl等源文件来自redis项目。基于Redis网络底层库的网络编程框架。 专为加班狗制作,加入自己的制定的业务协议————二进制协议或者文本协议,就可以了。一天写一个服务器,吓死你的老板。 让加班狗少加些班。

号称百万级TCP在线服务器框架

1、占用内存少,事件模型,高效,百万级TCP在线。主要用于百万级物联网设备的入网连接。 2、同一端口复用各种通用协议。 3、默认实现http协议。 4、默认实现ws协议。 5、随意添加私有二进制协议。

特点

https://github.com/Markgorden/megascale_tcp_online_base_framework/blob/master/main/networking.c
Buffer处理那里。按frame解析,最省 资源。绝对 是 目前最省 资源的 方式 了。 Kqueue一定要加。 二进制协议,解析处理那里,并且,可以灵活添加 各种 自定义的 二进制 协 议。 当然 也可以轻松地 支持各种 rtp ,rtsp,之类的。 一点问题都没有,并且都复用在一个端口上。 同一个端口,解决一切问题。 协议自动匹配,即注册一个 协议,就可以 处理这个协议了。 注册一个协议——给一个协议名称,以及相应的处理函数。 在进入服务器循环之前。 注册 需要处理的 协议。 找到协议解析器。

与event uv对比

比event uv,能不能虐它们? 应该 能。 它们只是事件库。 而我这个,已经是一个 二进制协议处理框架了。 只需要在上边添加 业务就行了。 httpd我这个内置了。 在这个框架上实现 mqtt,就可以控制灯了。 mqtt协议。

libwotdog's People

Contributors

markgorden avatar

Stargazers

Mike Johnson avatar westwin avatar  avatar Frank avatar VincentZou avatar 小唐朝 avatar xlong avatar wuqiong avatar Edward.x avatar  avatar

Watchers

xlong avatar James Cloos avatar  avatar  avatar  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.