8 #ifndef _TASKS_NET_IO_TASK_H_
9 #define _TASKS_NET_IO_TASK_H_
29 std::ostringstream os;
30 os <<
"net_io_task(" <<
this <<
"," <<
iob().
fd() <<
":" <<
events() <<
")";
72 #endif // _TASKS_NET_IO_TASK_H_
void disable_auto_close()
Disable automatic closing of the socket in the desctructor.
The base class for any task.
const io_base & iob() const
Grant const socket access to the io_task_base.
static void add_task(net_io_task *task)
The net_io_task implements the base for socket based network tasks.
int events() const
Return the monitored events.
This is the base class for io event tasks. It controls an ev_io watcher that monitors io events on fi...
std::string get_string() const
A debug helper.
Base class for socket and term.
io_base & iob()
Grant socket access to the io_task_base.
net::socket & socket()
Provide access to the underlying socket object.
const net::socket & socket() const
Provide const access to the underlying socket object.