Git Product home page Git Product logo

asio3's Introduction

asio3

Header only c++ network library, based on c++ 20 coroutine and asio

设计思路

  • 基于c++20, 单线程协程模式, 以简洁易用为目标
  • 不再定义其它的namespace, 而是直接在namespace asio中添加功能, 这样用户在自己的代码中通过namespace net=asio;重定向一下命名空间, 然后统一使用net::xxx即可, 代码更干净;
  • 避免继承, 尽量使用组合模式, 将各种功能封装成一个个独立的api接口函数, 用户自行选择调用
  • 封装的api函数尽量保证同时支持callback,future,coroutine等各种调用方式
  • 各种属性类不再采用get set这种方式, 而是采用c++20的指定初始化功能, 类似js的语法, 非常清爽
  • 使用concept代替sfinae, 尽量使用c++20的新特性
  • 提供轻框架支持

asio3's People

Contributors

zhllxt 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.