
25 Feb
2010
25 Feb
'10
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 <davkaplan@gmail.com> wrote:
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()?