Boost logo

Boost Users :

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()?
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net