Files
php-doc-ru/reference/curl/functions/curl-multi-select.xml
2024-10-28 17:34:39 +03:00

100 lines
3.2 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 52640977d08c65c9f801c04ef9101d4347fc2177 Maintainer: shein Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.curl-multi-select" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>curl_multi_select</refname>
<refpurpose>Ждёт, пока соединения мультидескриптора проявляют активность</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>curl_multi_select</methodname>
<methodparam><type>CurlMultiHandle</type><parameter>multi_handle</parameter></methodparam>
<methodparam choice="opt"><type>float</type><parameter>timeout</parameter><initializer>1.0</initializer></methodparam>
</methodsynopsis>
<para>
Функция блокирует выполнение скрипта, пока соединения мультидескриптора cURL проявляют активность.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
&curl.mh.description;
<varlistentry>
<term><parameter>timeout</parameter></term>
<listitem>
<para>
Время ожидания в секундах, в течение которого
функция будет ждать ответы активных соединений,
прежде чем вернёт результат.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
В случае успешного выполнения функция возвращает количество активных дескрипторов набора.
Иногда функция возвращает <literal>0</literal>, если при вызове функции
ни одно соединение в наборе дескрипторов не проявляло активность.
При ошибке выбора функция вернёт значение <literal>-1</literal>,
которое получила из нижележащего системного вызова <literal>select()</literal>.
</para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
&curl.changelog.multi-handle-param;
</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>curl_multi_init</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->