Lines Matching refs:retsock
2275 php_socket *retsock; local
2282 retsock = php_create_socket();
2283 retsock->bsd_socket = socket;
2288 retsock->type = type;
2292 retsock->type = addr.ss_family;
2294 PHP_SOCKET_ERROR(retsock, "unable to obtain socket family", errno);
2302 PHP_SOCKET_ERROR(retsock, "unable to obtain blocking state", errno);
2305 retsock->blocking = !(t & O_NONBLOCK);
2309 return retsock;
2312 efree(retsock);
2322 php_socket *retsock = NULL; local
2335 retsock = socket_import_file_descriptor(socket);
2336 if (retsock == NULL) {
2344 retsock->blocking =
2347 retsock->blocking = 1;
2353 ZVAL_COPY(&retsock->zstream, zstream);
2358 RETURN_RES(zend_register_resource(retsock, le_socket));