GithubHelp home page GithubHelp logo

luce's Issues

关于 io_uring 的实现和 HTTP 实现

你好,我之前参加了阿里云举办的一个比赛,也是使用了 C++20 的协程封装异步操作,我封装的是 io_uring,也实现了 HTTP 协议的解析,但是代码写的有些乱

io_uring 的封装我包装成了一个库:uringpp

参赛的代码:hcache-uring

我更想实现的是封装 DPDK 和 SPDK 相关的用户态高性能库,不知道你是否有了解

Connection 似乎是半双工的

似乎无法在两个协程中并发调用 connection::read/write,因为它们的在 epoll 中注册的是 coroutine_handle,这意味着同一时间在同一 fd 上最多只能关联一个 coroutine_handle。

如果对一个 socket 开两个协程,一个只 read,一个只 write,这似乎是不支持的。

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.