Boost asio ssl socket with Qt sockets
General and Desktop
2
Posts
2
Posters
3.6k
Views
1
Watching
-
wrote on 22 Jun 2012, 09:49 last edited by
Hi,
I have a communication class based on boost::asio::ssl. Is it possible to use this socket as Qt socket.
Thanks,
Lloyd -
wrote on 28 Jul 2012, 16:33 last edited by
From my own experience, when using asio in Qt, use the asio distribution that comes without boost, check "ASIO":http://think-async.com
Also, you can implement your own io object and use whatever you want, ASIO is just an asynchronous I/O library, the io object can be an USB device, file in the filesystem, network socket or whatever, all you have to do is implement your own io object (in this case, to use QSslSocket) and then pass it to the library.
For that, check the ASIO documentation in the link I referenced.