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@mail1.stofanet.dk> 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@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users