niXman
niXman

Reputation: 1758

How to cancel asynchronous read/write without closing the socket?

How to cancel asynchronous read/write without closing the socket? I use boost.asio. Thanks.

Upvotes: 6

Views: 3962

Answers (1)

Sam Miller
Sam Miller

Reputation: 24164

Use socket::cancel.

Cancel all asynchronous operations associated with the socket.

Upvotes: 9

Related Questions