Lines Matching refs:retsock
2345 bool socket_import_file_descriptor(PHP_SOCKET socket, php_socket *retsock) argument
2357 retsock->bsd_socket = socket;
2362 retsock->type = type;
2366 retsock->type = addr.ss_family;
2368 PHP_SOCKET_ERROR(retsock, "Unable to obtain socket family", errno);
2376 PHP_SOCKET_ERROR(retsock, "Unable to obtain blocking state", errno);
2379 retsock->blocking = !(t & O_NONBLOCK);
2391 php_socket *retsock = NULL; local
2405 retsock = Z_SOCKET_P(return_value);
2407 if (!socket_import_file_descriptor(socket, retsock)) {
2416 retsock->blocking =
2419 retsock->blocking = 1;
2425 ZVAL_COPY(&retsock->zstream, zstream);