views:

31

answers:

1

I was looking for event callback function when OpenSSL has incoming 'Read' data. Does OpenSSL has this kind of function? If yes, could you please show me some example code please?

I'm thinking to write a simple wrapper for my application. This wrapper will make a callback when data arrive. My initial thought would be create a thread looping in non-blocking mode to scan for any incoming data. And when data arrived, I'll just make the callback. Am I doing the right thing here?

Thanks a lot for answering! And sorry for my English.

A: 

Boost.Asio has support for asynchronous SSL read operations.

Sam Miller
Thanks for your recommendation but is there anything more specific to OpenSSL?
inx
I'm not aware of callbacks specific to OpenSSL.
Sam Miller