
Boost Community,
I've created a basic class that wrapped the boost asio framework
receive/send functionality. My wrapper class gave the packet buffer to
whatever processing function that it was created with and when the function
was done sent any buffers it was given. This let me create classes that
processed data without any knowledge of the transport layer.
This concept has worked well since the asio sockets have an async_receive
and async_send. I was able to setup all of my classes and then call
io_service.run() to get everything going. I now have to receive data from
a customer dll and they only support polling. Is there a way to add to the
io_service a specific method to call once the io_service is running. I've
included the ReceiveProcessSend.hpp with a comment above the two
async_receive calls I need to replace. Also, below is a very basic example
of how I setup classes that I pass into the ReceiveProcessSend.
Any help on how to add calling methods to the io_service would be
really appreciated.
Ryan
class DoSomeProcessing
{
private:
typedef std::vector<unsigned char> t_ucvector;
typedef boost::shared_ptr