Boost logo

Boost Users :

Subject: Re: [Boost-users] asio: implementing sock->receive like behavior eith async_read_some
From: Lloyd (lloydkl.tech_at_[hidden])
Date: 2016-01-31 23:18:22


Thanks Bjorn Reese, yes I can use that function. I was mistakenly trying
the async function.

On Sun, Jan 31, 2016 at 4:04 PM, Bjorn Reese <breese_at_[hidden]>
wrote:

> 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 mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



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