Boost logo

Boost Users :

Subject: Re: [Boost-users] asio: implementing sock->receive like behavior eith async_read_some
From: Bjorn Reese (breese_at_[hidden])
Date: 2016-01-31 05:34:10


On 01/28/2016 01:56 PM, Lloyd wrote:

> I am using asio to read some data from SSL socket. asio tcp socket
> implements a "receive" function, but ssl socket doesn't have an
> implementation for "receive". In the code sample given below I wish to
> implement this kind of behavior.
>
> eg
>
> {
> ...
> sock.async_read_some(...);
> //continue the execution only after the above call finishes.
> }

Why are you using an asynchronous operation instead of simply calling
ssl::stream::read_some()?


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