mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-24 04:48:55 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@297028 c90b9560-bf6c-de11-be94-00142212c4b1
89 lines
2.5 KiB
XML
89 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<refentry xml:id="function.event-buffer-watermark-set" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>event_buffer_watermark_set</refname>
|
|
<refpurpose>Set the watermarks for read and write events</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>void</type><methodname>event_buffer_watermark_set</methodname>
|
|
<methodparam><type>resource</type><parameter>bevent</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>events</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>lowmark</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>highmark</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Sets the watermarks for read and write events. Libevent does not invoke
|
|
read callback unless there is at least <parameter>lowmark</parameter> bytes
|
|
in the input buffer; if the read buffer is beyond the <parameter>highmark</parameter>,
|
|
reading is stopped. On output, the write callback is invoked whenever the
|
|
buffered data falls below the <parameter>lowmark</parameter>.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>bevent</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Valid buffered event resource.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>events</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Any combination of <constant>EV_READ</constant> and
|
|
<constant>EV_WRITE</constant>.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>lowmark</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Low watermark.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>highmark</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
High watermark.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</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
|
|
-->
|