int uv_read_stop(uv_handle_t* handle) { uv_flag_unset(handle, UV_READING); ev_io_stop(EV_DEFAULT_UC_ &handle->read_watcher); handle->read_cb = NULL; return 0; }
int uv_read_stop(uv_tcp_t* tcp) { uv_flag_unset((uv_handle_t*)tcp, UV_READING); ev_io_stop(EV_DEFAULT_UC_ &tcp->read_watcher); tcp->read_cb = NULL; tcp->alloc_cb = NULL; return 0; }