1 #ifndef RAPP_SERVICE_CONTROLLER
2 #define RAPP_SERVICE_CONTROLLER
33 void run_job(
const std::shared_ptr<asio_socket> job);
41 void run_jobs(
const std::vector<std::shared_ptr<asio_socket>> & jobs);
48 boost::asio::ip::tcp::resolver::query
query_;
49 boost::asio::io_service
io_;
50 boost::asio::ip::tcp::resolver
resol_;
Main class that controllers RAPP Services.
void run_jobs(const std::vector< std::shared_ptr< asio_socket >> &jobs)
Run a group of jobs in a batch.
boost::asio::ip::tcp::resolver::query query_
resolution, query and io service
service_controller()
no empty constructor
void run_job(const std::shared_ptr< asio_socket > job)
Run one service job.
void stop()
stop the service controller
boost::asio::io_service io_
boost::asio::ip::tcp::resolver resol_