I want to do the following with Boost Asio. I have a socket and I want to register a callback for the call when the data is read / write on the socket, but I do not want it to actually read / write. Basically, I need it to be like async_read_some / async_write_some , except that the actual read and write are not executed.
I need this because I use an external library with my own read and write function, which requires a socket descriptor as an input parameter, and I want to use this library asynchronously.
petersohn
source share