Boost Users :
Subject: [Boost-users] asio: implementing sock->receive like behavior eith async_read_some
From: Lloyd (lloydkl.tech_at_[hidden])
Date: 2016-01-28 07:56:45
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.
//continue the execution only after the above call finishes.
Whats the best way to do this?
I tried "future" but the code blocks/dead locks some how, The I tried
"spawn", but in this case also I don't know the method to wait for the
coroutine to finish.
Some tips are greatly appreciated.
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