예제 #1
0
파일: uv-unix.c 프로젝트: nekedos/node
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;
}
예제 #2
0
파일: uv-unix.c 프로젝트: AMorgaut/node
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;
}