31 Jan
2016
31 Jan
'16
10:34 a.m.
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()?