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.
socket::async_send()是一种组合方法,它以零次或多次调用socket::async_write_some(). 但是,正如文档所述:
socket::async_send()
socket::async_write_some()
发送操作可能不会将所有数据传输到对等方。
那么,我什么时候需要这种行为呢?
当您在套接字上爆裂信息并且部分信息是一次性的。