Lines Matching refs:socket

1623 	if (!SSL_set_fd(sslsock->ssl_handle, sslsock->s.socket)) {  in php_openssl_setup_crypto()
1774 if (SUCCESS == php_set_sock_blocking(sslsock->s.socket, 0)) { in php_openssl_enable_crypto()
1827 php_pollfd_for(sslsock->s.socket, (err == SSL_ERROR_WANT_READ) ? in php_openssl_enable_crypto()
1835 …if (sslsock->s.is_blocked != blocked && SUCCESS == php_set_sock_blocking(sslsock->s.socket, blocke… in php_openssl_enable_crypto()
1937 if (timeout && php_set_sock_blocking(sslsock->s.socket, 0) == SUCCESS) { in php_openssl_sockop_io()
1962 php_set_sock_blocking(sslsock->s.socket, 1); in php_openssl_sockop_io()
2020 php_pollfd_for(sslsock->s.socket, (err == SSL_ERROR_WANT_WRITE) ? in php_openssl_sockop_io()
2023 php_pollfd_for(sslsock->s.socket, (err == SSL_ERROR_WANT_READ) ? in php_openssl_sockop_io()
2039 php_pollfd_for(sslsock->s.socket, (err == SSL_ERROR_WANT_WRITE) ? in php_openssl_sockop_io()
2042 php_pollfd_for(sslsock->s.socket, (err == SSL_ERROR_WANT_READ) ? in php_openssl_sockop_io()
2057 if (began_blocked && php_set_sock_blocking(sslsock->s.socket, 1) == SUCCESS) { in php_openssl_sockop_io()
2133 if (sslsock->s.socket == -1) in php_openssl_sockop_close()
2134 sslsock->s.socket = SOCK_ERR; in php_openssl_sockop_close()
2136 if (sslsock->s.socket != SOCK_ERR) { in php_openssl_sockop_close()
2139 shutdown(sslsock->s.socket, SHUT_RD); in php_openssl_sockop_close()
2148 n = php_pollfd_for_ms(sslsock->s.socket, POLLOUT, 500); in php_openssl_sockop_close()
2151 closesocket(sslsock->s.socket); in php_openssl_sockop_close()
2152 sslsock->s.socket = SOCK_ERR; in php_openssl_sockop_close()
2207 clisock = php_network_accept_incoming(sock->s.socket, in php_openssl_tcp_sockop_accept()
2223 clisockdata->s.socket = clisock; in php_openssl_tcp_sockop_accept()
2335 if (sslsock->s.socket == -1) { in php_openssl_sockop_set_option()
2337 } else if (php_pollfd_for(sslsock->s.socket, PHP_POLLREADABLE|POLLPRI, &tv) > 0) { in php_openssl_sockop_set_option()
2363 …} else if (0 == recv(sslsock->s.socket, &buf, sizeof(buf), MSG_PEEK) && php_socket_errno() != EAGA… in php_openssl_sockop_set_option()
2438 *ret = fdopen(sslsock->s.socket, stream->mode); in php_openssl_sockop_cast()
2457 *(php_socket_t *)ret = sslsock->s.socket; in php_openssl_sockop_cast()
2467 *(php_socket_t *)ret = sslsock->s.socket; in php_openssl_sockop_cast()
2560 sslsock->s.socket = -1; in php_openssl_ssl_socket_factory()