| 45 | } |
| 46 | |
| 47 | static void writable_cb(struct ev_loop *loop, ev_io *ev, int revent) { |
| 48 | reinterpret_cast<NetworkThread *>(ev_userdata(loop))->onSend(ev->fd); |
| 49 | } |
| 50 | |
| 51 | static void readable_cb(struct ev_loop *loop, ev_io *ev, int revent) { |
| 52 | reinterpret_cast<NetworkThread *>(ev_userdata(loop))->onRecv(ev->fd); |