1
0
mirror of https://github.com/php/doc-ru.git synced 2026-04-23 07:18:12 +02:00
Files
archived-doc-ru/reference/sockets/functions/socket-shutdown.xml
T
Sergey Panteleev 6d43fd64d7 Исправление форматирования
[skip-spellcheck]
[skip-lint]
2022-12-27 03:42:36 +03:00

123 lines
3.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 14dc7c47365f2b71f6c907a5ba5bccf42534d5a9 Maintainer: countzero Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.socket-shutdown" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>socket_shutdown</refname>
<refpurpose>Завершает работу сокета на получение и/или отправку данных</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>socket_shutdown</methodname>
<methodparam><type>Socket</type><parameter>socket</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer>2</initializer></methodparam>
</methodsynopsis>
<para>
Функция <function>socket_shutdown</function> позволяет вам остановить передачу
поступающих, исходящих или всех данных (по умолчанию) через сокет
<parameter>socket</parameter>
</para>
<note>
<para>
Ассоциированный буфер, или буферы, могут быть освобождены, а могут и нет.
</para>
</note>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>socket</parameter></term>
<listitem>
<para>
Экземпляр <classname>Socket</classname>, созданный при помощи функции <function>socket_create</function>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>mode</parameter></term>
<listitem>
<para>
Значение параметра <parameter>mode</parameter> может быть одним из следующих:
<table>
<title>возможные значения для параметра <parameter>mode</parameter></title>
<tgroup cols="2">
<tbody>
<row>
<entry><literal>0</literal></entry>
<entry>
Завершает чтение из сокета
</entry>
</row>
<row>
<entry><literal>1</literal></entry>
<entry>
Завершает запись в сокет
</entry>
</row>
<row>
<entry><literal>2</literal></entry>
<entry>
Завершает чтение и запись в сокет
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
</para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
&sockets.changelog.socket-param;
</tbody>
</tgroup>
</informaltable>
</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
-->