如何在不关闭套接字的情况下取消异步读/写?

niX*_*man 6 c++ boost-asio

如何在不关闭套接字的情况下取消异步读/写?我使用boost.asio.谢谢.

Sam*_*ler 9

使用socket :: cancel.

取消与套接字关联的所有异步操作.