mirror of
https://github.com/macintoshplus/doc-en.git
synced 2026-03-29 12:22:18 +02:00
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@78496 c90b9560-bf6c-de11-be94-00142212c4b1
75 lines
2.2 KiB
XML
75 lines
2.2 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.2 $ -->
|
|
<!-- splitted from ./en/functions/network.xml, last change in rev 1.24 -->
|
|
<refentry id="function.socket-get-status">
|
|
<refnamediv>
|
|
<refname>socket_get_status</refname>
|
|
<refpurpose>
|
|
Returns information about an existing socket stream
|
|
</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Description</title>
|
|
<methodsynopsis>
|
|
<type>array</type><methodname>socket_get_status</methodname>
|
|
<methodparam><type>resource</type><parameter>socketstream</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Returns information about an existing socket stream. This function only
|
|
works on sockets created by <function>fsockopen</function>,
|
|
<function>pfsockopen</function> or network sockets returned by
|
|
<function>fopen</function> when opening URLs. It does NOT work
|
|
with sockets from the <link linkend="ref.sockets">Socket extension</link>.
|
|
Currently returns four entries in the result array:
|
|
</para>
|
|
<itemizedlist>
|
|
<listitem>
|
|
<para>
|
|
<parameter>timed_out</parameter> (bool) - The socket timed out
|
|
waiting for data
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
<parameter>blocked</parameter> (bool) - The socket was blocked
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
<parameter>eof</parameter> (bool) - Indicates EOF event
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
<parameter>unread_bytes</parameter> (int) - Number of bytes
|
|
left in the socket buffer
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
<para>
|
|
See also: <link linkend="ref.sockets">Socket extension</link>.
|
|
</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:"../../../../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
|
|
-->
|