
25 Feb
2010
25 Feb
'10
7:24 a.m.
How do I perform a peek instead of a read (which removes data from the buffer)? I found socket_base::message_peek, how do I use that together with my socket and asio::read()?

25 Feb
25 Feb
7:49 a.m.
socket->receive(buffer(&buf, 1), socket_base::message_peek) seems to
have done the trick. Is that the most optimal way?
On 25 February 2010 09:24, David Kaplan
How do I perform a peek instead of a read (which removes data from the buffer)? I found socket_base::message_peek, how do I use that together with my socket and asio::read()?
5533
Age (days ago)
5533
Last active (days ago)
1 comments
1 participants
participants (1)
-
David Kaplan