RFoe / coasync

Asynchronous network library that supports coroutines in C++20
https://github.com/RFoe/coasync
MIT License
51 stars 5 forks source link

receive_until末尾多余的字节不应该直接丢掉 #9

Closed RFoe closed 2 months ago

RFoe commented 2 months ago

https://github.com/RFoe/coasync/blob/3eb2a5f2e7ac97123526e1e74f73ab0f0c000bb1/include/coasync/net/receive.hpp#L51

或许是这样:

struct receive_until_result {
    std::string bytes;
    std::string padding;
};