2002-04-15 00:12:54 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2002-09-10 11:07:21 +00:00
|
|
|
<!-- $Revision: 1.3 $ -->
|
2002-04-15 00:12:54 +00:00
|
|
|
<!-- splitted from ./en/functions/network.xml, last change in rev 1.2 -->
|
|
|
|
<refentry id="function.socket-set-blocking">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>socket_set_blocking</refname>
|
|
|
|
<refpurpose>Set blocking/non-blocking mode on a socket</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<methodsynopsis>
|
2002-09-10 11:07:21 +00:00
|
|
|
<type>bool</type><methodname>socket_set_blocking</methodname>
|
|
|
|
<methodparam><type>resource</type><parameter>socket descriptor</parameter></methodparam>
|
2002-04-15 00:12:54 +00:00
|
|
|
<methodparam><type>int</type><parameter>mode</parameter></methodparam>
|
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
|
|
|
If <parameter>mode</parameter> is &false;, the given socket
|
|
|
|
descriptor will be switched to non-blocking mode, and if &true;, it
|
|
|
|
will be switched to blocking mode. This affects calls like
|
|
|
|
<function>fgets</function> that read from the socket. In
|
|
|
|
non-blocking mode an <function>fgets</function> call will always
|
|
|
|
return right away while in blocking mode it will wait for data to
|
|
|
|
become available on the socket.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
This function was previously called as
|
|
|
|
<function>set_socket_blocking</function> but this usage is deprecated.
|
|
|
|
</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
|
|
|
|
-->
|