boost::asio - peeking into a socket buffer

后端 未结 2 1991
后悔当初
后悔当初 2021-01-15 17:44

I use boost::asio::read (or may be the equivalent async_read) to read some data from a socket.

Is it possible that I leave the bytes read in the underlying socket so

2条回答
  •  时光说笑
    2021-01-15 18:17

    No, it is not possible - if you want a kind of peek you have to store the peeked bytes by your self.

提交回复
热议问题