$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] message_peek
From: David Kaplan (davkaplan_at_[hidden])
Date: 2010-02-25 02:49:37
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_at_[hidden]> 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()?
>