Lines Matching refs:cb
461 stream->connect_req->cb(stream->connect_req, UV_ECANCELED); in uv__stream_destroy()
601 int uv_listen(uv_stream_t* stream, int backlog, uv_connection_cb cb) { in uv_listen() argument
608 err = uv__tcp_listen((uv_tcp_t*)stream, backlog, cb); in uv_listen()
612 err = uv__pipe_listen((uv_pipe_t*)stream, backlog, cb); in uv_listen()
656 if (req->cb != NULL) in uv__drain()
657 req->cb(req, err); in uv__drain()
926 if (req->cb) in uv__write_callbacks()
927 req->cb(req, req->error); in uv__write_callbacks()
1160 int uv_shutdown(uv_shutdown_t* req, uv_stream_t* stream, uv_shutdown_cb cb) { in uv_shutdown() argument
1178 req->cb = cb; in uv_shutdown()
1282 if (req->cb) in uv__stream_connect()
1283 req->cb(req, error); in uv__stream_connect()
1338 uv_write_cb cb) { in uv_write2() argument
1356 req->cb = cb; in uv_write2()
1409 uv_write_cb cb) { in uv_write() argument
1410 return uv_write2(req, handle, bufs, nbufs, NULL, cb); in uv_write()