php-doc-en/reference/event/event.flags.xml
Chris Wright 27689a6667 Whitespace fixes in ext/event
-- 
Provided by anonymous 47288

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334692 c90b9560-bf6c-de11-be94-00142212c4b1
2014-09-01 15:38:17 +00:00

57 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<chapter xml:id="event.flags" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Event flags</title>
<para>
<constant>Event::READ</constant>
This flag indicates an event that becomes active when the provided file
descriptor (usually a stream resource, or socket) is ready for reading.
</para>
<para>
<constant>Event::WRITE</constant>
flag indicates an event that becomes active when the provided file
descriptor (usually a stream resource, or socket) is ready for writing.
</para>
<para>
<constant>Event::SIGNAL</constant>
used to implement signal detection. See "Constructing signal events" below.
</para>
<para>
<constant>Event::TIMEOUT</constant>
indicates an event that becomes active after a timeout elapses. The
<constant>Event::TIMEOUT</constant>
flag is ignored when constructing an event: one can either set a timeout
when event is
<emphasis>added</emphasis>
, or not. It is set in the
<literal>$what</literal>
argument to the callback function when a timeout has occurred.
</para>
<para>
See also
<link
xlink:href="http://www.wangafu.net/~nickm/libevent-book/Ref4_event.html#_the_event_flags">Fast
portable non-blocking network programming with Libevent, Working with events,
Event flags</link>
</para>
</chapter>
<!-- 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
-->