Lines Matching refs:handle

170 		r = cb(&loop->loop, (void *) &_uv->uv.handle, ##__VA_ARGS__); \
394 static void php_uv_read_cb(uv_stream_t* handle, ssize_t nread,const uv_buf_t* buf);
398 static void php_uv_read_alloc(uv_handle_t* handle, size_t suggested_size, uv_buf_t* buf);
402 static void php_uv_timer_cb(uv_timer_t *handle);
404 static void php_uv_idle_cb(uv_timer_t *handle);
406 static void php_uv_signal_cb(uv_signal_t *handle, int sig_num);
1234 static void destruct_uv_loop_walk_cb(uv_handle_t* handle, void* arg) argument
1236 php_uv_t *uv = (php_uv_t *) handle->data;
1401 uv_stop(uv->uv.shutdown.handle->loop);
1404 uv_stop(uv->uv.udp_send.handle->loop);
1408 uv_stop(uv->uv.connect.handle->loop);
1411 uv_stop(uv->uv.handle.loop);
1566 static void php_uv_walk_cb(uv_handle_t* handle, void* arg) argument
1590 php_uv_t *uv = (php_uv_t *) req->handle->data;
1601 uv_stop(uv->uv.handle.loop);
1626 …if (!uv_is_closing(&uv->uv.handle)) { /* send_cb is invoked *before* the handle is marked as inact…
1662 static void php_uv_shutdown_cb(uv_shutdown_t* handle, int status) argument
1666 php_uv_t *uv = (php_uv_t *) handle->data;
1681 static void php_uv_read_cb(uv_stream_t* handle, ssize_t nread, const uv_buf_t* buf) argument
1685 php_uv_t *uv = (php_uv_t *) handle->data;
1752 static void php_uv_prepare_cb(uv_prepare_t* handle) argument
1756 php_uv_t *uv = (php_uv_t*)handle->data;
1773 static void php_uv_check_cb(uv_check_t* handle) argument
1777 php_uv_t *uv = (php_uv_t*)handle->data;
1795 static void php_uv_async_cb(uv_async_t* handle) argument
1799 php_uv_t *uv = (php_uv_t*)handle->data;
2053 static void php_uv_fs_poll_cb(uv_fs_poll_t* handle, int status, const uv_stat_t* prev, const uv_sta… argument
2057 php_uv_t *uv = (php_uv_t*)handle->data;
2078 static void php_uv_poll_cb(uv_poll_t* handle, int status, int events) argument
2082 php_uv_t *uv = (php_uv_t*)handle->data;
2110 static void php_uv_udp_recv_cb(uv_udp_t* handle, ssize_t nread, const uv_buf_t* buf, const struct s… argument
2115 php_uv_t *uv = (php_uv_t*)handle->data;
2142 static void php_uv_read_alloc(uv_handle_t* handle, size_t suggested_size, uv_buf_t* buf) argument
2148 static void php_uv_close_cb(uv_handle_t *handle) argument
2153 php_uv_t *uv = (php_uv_t *) handle->data;
2173 …e || ce == uv_check_ce || ce == uv_poll_ce || ce == uv_fs_poll_ce) && uv_is_active(&uv->uv.handle);
2178 ZEND_ASSERT(!uv_is_closing(&uv->uv.handle));
2185 uv_close(&uv->uv.handle, php_uv_close_cb);
2190 static void php_uv_idle_cb(uv_timer_t *handle) argument
2195 php_uv_t *uv = (php_uv_t*)handle->data;
2210 static void php_uv_getaddrinfo_cb(uv_getaddrinfo_t* handle, int status, struct addrinfo* res) argument
2218 php_uv_t *uv = (php_uv_t*)handle->data;
2259 static void php_uv_timer_cb(uv_timer_t *handle) argument
2263 php_uv_t *uv = (php_uv_t*)handle->data;
2268 if (handle->repeat) {
2281 static void php_uv_signal_cb(uv_signal_t *handle, int sig_num) argument
2285 php_uv_t *uv = (php_uv_t*)handle->data;
2424 error = open_cb(&uv->uv.handle, fd);
2506 ZVAL_LONG(writeobj, readobj->handle);
2528 …if (uv_fileno(&uv->uv.handle, (uv_os_fd_t *)&fd) == 0) { /* not actually a fd on windows but a han…
2573 static void php_uv_loop_get_gc_walk_cb(uv_handle_t* handle, void *arg) { argument
2575 php_uv_t *uv = (php_uv_t *) handle->data;
2636 uv->uv.handle.data = uv;
2789 if (sockets->handle) { // shared
2791 …zend_class_entry **socket_ce_ptr = (zend_class_entry **) DL_FETCH_SYMBOL(sockets->handle, "socket_…
2793 socket_ce_ptr = (zend_class_entry **) DL_FETCH_SYMBOL(sockets->handle, "_socket_ce");
2797 …php_sockets_le_socket_ptr = (int (*)(void)) DL_FETCH_SYMBOL(sockets->handle, "php_sockets_le_socke…
2799 …php_sockets_le_socket_ptr = (int (*)(void)) DL_FETCH_SYMBOL(sockets->handle, "_php_sockets_le_sock…
2978 ZEND_ARG_INFO(0, handle)
2982 ZEND_ARG_INFO(0, handle)
2986 ZEND_ARG_INFO(0, handle)
2990 ZEND_ARG_INFO(0, handle)
3097 ZEND_ARG_INFO(0, handle)
3102 ZEND_ARG_INFO(0, handle)
3108 ZEND_ARG_INFO(0, handle)
3112 ZEND_ARG_INFO(0, handle)
3116 ZEND_ARG_INFO(0, handle)
3362 ZEND_ARG_INFO(0, handle)
3366 ZEND_ARG_INFO(0, handle)
3370 ZEND_ARG_INFO(0, handle)
3374 ZEND_ARG_INFO(0, handle)
3378 ZEND_ARG_INFO(0, handle)
3382 ZEND_ARG_INFO(0, handle)
3386 ZEND_ARG_INFO(0, handle)
3390 ZEND_ARG_INFO(0, handle)
3394 ZEND_ARG_INFO(0, handle)
3418 ZEND_ARG_INFO(0, handle)
3423 ZEND_ARG_INFO(0, handle)
3431 ZEND_ARG_INFO(0, handle)
3436 ZEND_ARG_INFO(0, handle)
3440 ZEND_ARG_INFO(0, handle)
3449 ZEND_ARG_INFO(0, handle)
3453 ZEND_ARG_INFO(0, handle)
3457 ZEND_ARG_INFO(0, handle)
3461 ZEND_ARG_INFO(0, handle)
3473 ZEND_ARG_INFO(0, handle)
3477 ZEND_ARG_INFO(0, handle)
3485 ZEND_ARG_INFO(0, handle)
3501 ZEND_ARG_INFO(0, handle)
3507 ZEND_ARG_INFO(0, handle)
3536 uv_unref(&uv->uv.handle);
3607 uv_ref(&uv->uv.handle);
3962 if (uv_fileno(&uv->uv.handle, &fd) != 0) {
3990 if (!uv_is_active(&uv->uv.handle)) {
4139 if (uv_is_active(&uv->uv.handle)) {
4163 if (!uv_is_active(&uv->uv.handle)) {
4188 if (uv_is_active(&uv->uv.handle)) {
4267 if (uv_is_active(&uv->uv.handle)) {
4295 if (!uv_is_active(&uv->uv.handle)) {
4462 if (uv_is_active(&uv->uv.handle)) {
4489 if (!uv_is_active(&uv->uv.handle)) {
4622 RETURN_BOOL(!PHP_UV_IS_DTORED(uv) && uv_is_active(&uv->uv.handle));
4700 zval *handle; local
4705 "r", &handle) == FAILURE) {
4709 fd = php_uv_zval_to_fd(handle);
4852 zval *handle; local
4861 "|zl", &handle, &flags) == FAILURE) {
4865 if (handle == NULL || Z_TYPE_P(handle) == IS_NULL) {
4867 } else if (Z_TYPE_P(handle) == IS_LONG) {
4868 fd = Z_LVAL_P(handle);
4874 } else if (Z_TYPE_P(handle) == IS_RESOURCE) {
4875 if ((stream = (php_stream *) zend_fetch_resource_ex(handle, NULL, php_file_le_stream()))) {
4881 …} else if ((socket = (php_socket *) zend_fetch_resource_ex(handle, NULL, php_sockets_le_socket()))…
4893 } else if (Z_TYPE_P(handle) == IS_OBJECT && instanceof_function(Z_OBJCE_P(handle), uv_ce)) {
4903 …(socket_ce && Z_TYPE_P(handle) == IS_OBJECT && Z_OBJCE_P(handle) == socket_ce && (socket = (php_so…
4920 if (Z_TYPE_P(handle) == IS_RESOURCE || Z_TYPE_P(handle) == IS_OBJECT) {
4921 ZVAL_COPY(&stdio->stream, handle);
5522 if (uv_is_active(&uv->uv.handle)) {
5549 if (!uv_is_active(&uv->uv.handle)) {
5599 if (uv_is_active(&uv->uv.handle)) {
5625 if (!uv_is_active(&uv->uv.handle)) {
6174 if (!uv_is_active(&uv->uv.handle)) {
6268 if (!uv_is_active(&uv->uv.handle)) {