Lines Matching refs:socket
1816 if (!SSL_set_fd(sslsock->ssl_handle, sslsock->s.socket)) { in php_openssl_setup_crypto()
1932 if (SUCCESS == php_set_sock_blocking(sslsock->s.socket, 0)) { in php_openssl_enable_crypto()
1978 php_pollfd_for(sslsock->s.socket, (err == SSL_ERROR_WANT_READ) ? in php_openssl_enable_crypto()
1986 …if (sslsock->s.is_blocked != blocked && SUCCESS == php_set_sock_blocking(sslsock->s.socket, blocke… in php_openssl_enable_crypto()
2070 if (timeout && php_set_sock_blocking(sslsock->s.socket, 0) == SUCCESS) { in php_openssl_sockop_io()
2095 php_set_sock_blocking(sslsock->s.socket, 1); in php_openssl_sockop_io()
2154 php_pollfd_for(sslsock->s.socket, (err == SSL_ERROR_WANT_WRITE) ? in php_openssl_sockop_io()
2157 php_pollfd_for(sslsock->s.socket, (err == SSL_ERROR_WANT_READ) ? in php_openssl_sockop_io()
2173 php_pollfd_for(sslsock->s.socket, (err == SSL_ERROR_WANT_WRITE) ? in php_openssl_sockop_io()
2176 php_pollfd_for(sslsock->s.socket, (err == SSL_ERROR_WANT_READ) ? in php_openssl_sockop_io()
2191 if (began_blocked && php_set_sock_blocking(sslsock->s.socket, 1) == SUCCESS) { in php_openssl_sockop_io()
2265 if (sslsock->s.socket == -1) in php_openssl_sockop_close()
2266 sslsock->s.socket = SOCK_ERR; in php_openssl_sockop_close()
2268 if (sslsock->s.socket != SOCK_ERR) { in php_openssl_sockop_close()
2271 shutdown(sslsock->s.socket, SHUT_RD); in php_openssl_sockop_close()
2280 n = php_pollfd_for_ms(sslsock->s.socket, POLLOUT, 500); in php_openssl_sockop_close()
2283 closesocket(sslsock->s.socket); in php_openssl_sockop_close()
2284 sslsock->s.socket = SOCK_ERR; in php_openssl_sockop_close()
2340 clisock = php_network_accept_incoming(sock->s.socket, in php_openssl_tcp_sockop_accept()
2356 clisockdata->s.socket = clisock; in php_openssl_tcp_sockop_accept()
2473 if (sslsock->s.socket == -1) { in php_openssl_sockop_set_option()
2482 php_pollfd_for(sslsock->s.socket, PHP_POLLREADABLE|POLLPRI, &tv) > 0 in php_openssl_sockop_set_option()
2498 if (timeout && php_set_sock_blocking(sslsock->s.socket, 0) == SUCCESS) { in php_openssl_sockop_set_option()
2523 php_set_sock_blocking(sslsock->s.socket, 1); in php_openssl_sockop_set_option()
2561 …if (php_pollfd_for(sslsock->s.socket, PHP_POLLREADABLE|POLLPRI|POLLOUT, has_timeout ? &left_time :… in php_openssl_sockop_set_option()
2575 php_set_sock_blocking(sslsock->s.socket, 1); in php_openssl_sockop_set_option()
2586 ret = recv(sslsock->s.socket, &buf, sizeof(buf), MSG_PEEK|MSG_DONTWAIT); in php_openssl_sockop_set_option()
2666 *ret = fdopen(sslsock->s.socket, stream->mode); in php_openssl_sockop_cast()
2685 *(php_socket_t *)ret = sslsock->s.socket; in php_openssl_sockop_cast()
2695 *(php_socket_t *)ret = sslsock->s.socket; in php_openssl_sockop_cast()
2792 sslsock->s.socket = -1; in php_openssl_ssl_socket_factory()