co_http icon indicating copy to clipboard operation
co_http copied to clipboard

小彭老师特意从零开始研发的一款教学用,基于 C++17 回调函数的异步 HTTP 服务器

Results 5 co_http issues
Sort by recently updated
recently updated
newest added

[【【C++17】小彭老师陪你从零手搓HTTP服务器】 【精准空降到 1:49:38】 ](https://www.bilibili.com/video/BV1Mz421i7Fm/?share_source=copy_web&vd_source=da518fd84c692534a9650154efcf2ec9&t=6578) , [代码位置](https://github.com/archibate/co_http/commit/ee73fd14a0ad5471516ed8f46c486309ccbdc4be#diff-a355038590c6bf94c43082b7ba4fac5e986b1f5dfcfb06127c0f9b3e2ac65c65), 在[1:51:47](https://www.bilibili.com/video/BV1Mz421i7Fm/?share_source=copy_web&vd_source=da518fd84c692534a9650154efcf2ec9&t=6707)处修复

[ 【【C++17】小彭老师陪你从零手搓HTTP服务器】 【精准空降到 1:06:20】 ](https://www.bilibili.com/video/BV1Mz421i7Fm/?share_source=copy_web&vd_source=da518fd84c692534a9650154efcf2ec9&t=3980), 写`http_response_writer`的地方视频没有找到, 实现代码见[struct http_request_writer](https://github.com/archibate/co_http/commit/8ed633771c2a4e7a8661bb7f4291fce7d7814ffa?diff=unified&w=0#diff-a355038590c6bf94c43082b7ba4fac5e986b1f5dfcfb06127c0f9b3e2ac65c65)

[【【C++17】小彭老师陪你从零手搓HTTP服务器】 【精准空降到 1:21:51】 ](https://www.bilibili.com/video/BV1Mz421i7Fm/?share_source=copy_web&vd_source=da518fd84c692534a9650154efcf2ec9&t=4911), 代码见[struct bytes_buffer](https://github.com/archibate/co_http/commit/d9a48e667abb1e865bed14b6ff0189b477153502)

``` C++ function:async_accept ...... auto ret = convert_error(accept(m_fd, &addr.m_addr, &addr.m_addrlen)); if (!ret.is_error(EAGAIN)) { stop.clear_stop_callback(); cb(ret);//Server不会报错 和 chat_Server会报错 //return cb(ret);//Server 和 chat_Server都不会报错 //return;//Server会报错 和 chat_Server会报错 } ``` 这里为什么必须调用cb(ret) 且需要return? 有没有大佬能够帮忙解释一下发生了什么?

小鹏老师,我在看代码的时候好像发现没有用到bearssl。