Lines Matching defs:handle
43 udp_recv_cb(uv_udp_t *handle, ssize_t nrecv, const uv_buf_t *buf,
50 udp_close_cb(uv_handle_t *handle);
53 read_timer_close_cb(uv_handle_t *handle);
243 uv_handle_set_data(&sock->uv_handle.handle, sock);
304 uv_recv_buffer_size(&sock->uv_handle.handle,
308 uv_send_buffer_size(&sock->uv_handle.handle,
377 udp_recv_cb(uv_udp_t *handle, ssize_t nrecv, const uv_buf_t *buf,
379 isc_nmsocket_t *sock = uv_handle_get_data((uv_handle_t *)handle);
495 isc__nm_udp_send(isc_nmhandle_t *handle, const isc_region_t *region,
497 isc_nmsocket_t *sock = handle->sock;
499 isc_sockaddr_t *peer = &handle->peer;
510 * The client would ordinarily have unreferenced the handle
515 isc_nmhandle_detach(&handle);
530 * use the thread from the socket associated with the handle.
552 isc_nmhandle_attach(handle, &uvreq->handle);
608 REQUIRE(VALID_NMHANDLE(uvreq->handle));
679 uv_handle_set_data(&sock->uv_handle.handle, sock);
704 uv_recv_buffer_size(&sock->uv_handle.handle,
708 uv_send_buffer_size(&sock->uv_handle.handle,
748 * call the 'open' callback with a handle.
779 * The sock is now attached to the handle.
816 req->handle = isc__nmhandle_get(sock, &req->peer, &sock->iface);
866 isc__nm_udp_read_cb(uv_udp_t *handle, ssize_t nrecv, const uv_buf_t *buf,
868 isc_nmsocket_t *sock = uv_handle_get_data((uv_handle_t *)handle);
871 udp_recv_cb(handle, nrecv, buf, addr, flags);
959 isc__nm_udp_read(isc_nmhandle_t *handle, isc_nm_recv_cb_t cb, void *cbarg) {
960 REQUIRE(VALID_NMHANDLE(handle));
961 REQUIRE(VALID_NMSOCK(handle->sock));
963 isc_nmsocket_t *sock = handle->sock;
966 REQUIRE(sock->statichandle == handle);
986 udp_stop_cb(uv_handle_t *handle) {
987 isc_nmsocket_t *sock = uv_handle_get_data(handle);
988 uv_handle_set_data(handle, NULL);
1008 udp_close_cb(uv_handle_t *handle) {
1009 isc_nmsocket_t *sock = uv_handle_get_data(handle);
1010 uv_handle_set_data(handle, NULL);
1035 read_timer_close_cb(uv_handle_t *handle) {
1036 isc_nmsocket_t *sock = uv_handle_get_data(handle);
1037 uv_handle_set_data(handle, NULL);
1040 uv_close(&sock->uv_handle.handle, udp_stop_cb);
1042 uv_close(&sock->uv_handle.handle, udp_close_cb);
1163 * When the client detaches the last handle, the
1181 isc__nm_udp_cancelread(isc_nmhandle_t *handle) {
1185 REQUIRE(VALID_NMHANDLE(handle));
1187 sock = handle->sock;
1192 ievent = isc__nm_get_netievent_udpcancel(sock->mgr, sock, handle);