Lines Matching refs:retsock
2184 bool socket_import_file_descriptor(PHP_SOCKET socket, php_socket *retsock) argument
2196 retsock->bsd_socket = socket;
2201 retsock->type = type;
2205 retsock->type = addr.ss_family;
2207 PHP_SOCKET_ERROR(retsock, "Unable to obtain socket family", errno);
2215 PHP_SOCKET_ERROR(retsock, "Unable to obtain blocking state", errno);
2218 retsock->blocking = !(t & O_NONBLOCK);
2230 php_socket *retsock = NULL; local
2244 retsock = Z_SOCKET_P(return_value);
2246 if (!socket_import_file_descriptor(socket, retsock)) {
2255 retsock->blocking =
2258 retsock->blocking = 1;
2264 ZVAL_COPY(&retsock->zstream, zstream);