Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
要从我使用的套接字异步接收数据async_read_some,但此函数有时不会接收所有数据,我应该使用什么函数来异步读取例如 10 个字节,并且此函数仅在读取这 10 个字节时才应回调。
async_read_some
谢谢!
async_read_some有一个对应项async_read,只有在读取完整大小后才会完成。
async_read