1
0
mirror of https://github.com/php/doc-ru.git synced 2026-03-26 00:32:15 +01:00
Files
archived-doc-ru/reference/sockets/functions/socket-addrinfo-bind.xml
2024-06-28 00:13:48 +03:00

104 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: 14dc7c47365f2b71f6c907a5ba5bccf42534d5a9 Maintainer: lex Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.socket-addrinfo-bind" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>socket_addrinfo_bind</refname>
<refpurpose>Создаёт и связывает сокет со структурой addrinfo</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type class="union"><type>Socket</type><type>false</type></type><methodname>socket_addrinfo_bind</methodname>
<methodparam><type>AddressInfo</type><parameter>address</parameter></methodparam>
</methodsynopsis>
<para>
Функция создаёт экземпляр класса <classname>Socket</classname> и связывает сокет
с экземпляром класса <classname>AddressInfo</classname>.
Значение, которое возвращает эта функция, передают в функцию <function>socket_listen</function>.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<variablelist>
<varlistentry>
<term><parameter>address</parameter></term>
<listitem>
<para>
Экземпляр класса <classname>AddressInfo</classname>, который создали
функцией <function>socket_addrinfo_lookup</function>.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Возвращает экземпляр <classname>Socket</classname> в случае успешного выполнения или &false;,
если возникла ошибка.
</para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.0.0</entry>
<entry>
В случае успешного выполнения функция возвращает экземпляр класса <classname>Socket</classname>;
раньше возвращался ресурс (<type>resource</type>).
</entry>
</row>
&sockets.changelog.address-param;
</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>socket_addrinfo_connect</function></member>
<member><function>socket_addrinfo_explain</function></member>
<member><function>socket_addrinfo_lookup</function></member>
<member><function>socket_listen</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
-->