Safir SDK Core
|
The class makes a thread switch and perform a dispatch on Dob connection. More...
#include <Safir/Utilities/AsioDispatcher.h>
Public Member Functions | |
AsioDispatcher (const Safir::Dob::Connection &connection, boost::asio::io_service &ioService) | |
Strandless constructor. More... | |
AsioDispatcher (const Safir::Dob::Connection &connection, boost::asio::strand &strand) | |
Stranded constructor. More... | |
boost::asio::strand & | Strand () |
Get the strand that the dispatcher uses. More... | |
Public Member Functions inherited from Safir::Dob::Dispatcher | |
virtual | ~Dispatcher () |
Virtual destructor is needed since we have virtual member functions. More... | |
Public Member Functions inherited from Safir::Dob::Internal::ConsumerBase | |
virtual | ~ConsumerBase () |
The class makes a thread switch and perform a dispatch on Dob connection.
Safir::Utilities::AsioDispatcher::AsioDispatcher | ( | const Safir::Dob::Connection & | connection, |
boost::asio::io_service & | ioService | ||
) |
Strandless constructor.
Creates an AsioDispatcher that performs Dispatches using an internal strand. I.e. all Dob callbacks will be performed from within the same - hidden - strand.
If you need access to the strand, use the other constructor.
[in] | connection | - The dob connection. |
[in] | ioService | - The ioService that runs the main loop |
Safir::Utilities::AsioDispatcher::AsioDispatcher | ( | const Safir::Dob::Connection & | connection, |
boost::asio::strand & | strand | ||
) |
Stranded constructor.
Creates an AsioDispatcher that performs Dispatches using a specified strand. I.e. all Dob callbacks will be performed from the given strand.
[in] | connection | - The dob connection. |
[in] | strand | - The strand to dispatch from. |
boost::asio::strand& Safir::Utilities::AsioDispatcher::Strand | ( | ) |
Get the strand that the dispatcher uses.