36 ev_io_start(loop, task->
watcher());
static std::shared_ptr< dispatcher > instance()
The base class for any task.
static void add_task(net_io_task *task)
The net_io_task implements the base for socket based network tasks.
virtual void init_watcher()
Initialize the watcher.
std::string get_string() const
A debug helper.
void assign_worker(worker *worker)
net::socket & socket()
Provide access to the underlying socket object.
bool exec_in_worker_ctx(task_func_t f)
ev_io * watcher() const
Return the io watcher object.