note 99141 added to libevent.examples
| From: | ddbox at gmail dot com | Date: | Fri, 30 Jul 2010 05:00:40 +0000 |
| Subject: | note 99141 added to libevent.examples | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171215@lists.php.net to get a copy of this message | ||
The example by Alexis has a number of errors:
- you need to check event_buffer_read for empty string, not just false.
- you need to call ev_read() inside ev_error() to fetch remaining data
----
Server IP: 69.147.83.197
Probable Submitter: 125.202.126.163
----
Manual Page -- http://www.php.net/manual/en/libevent.examples.php
Edit -- https://master.php.net/note/edit/99141
Del: integrated -- https://master.php.net/note/delete/99141/integrated
Del: useless -- https://master.php.net/note/delete/99141/useless
Del: bad code -- https://master.php.net/note/delete/99141/bad+code
Del: spam -- https://master.php.net/note/delete/99141/spam
Del: non-english -- https://master.php.net/note/delete/99141/non-english
Del: in docs -- https://master.php.net/note/delete/99141/in+docs
Del: other reasons-- https://master.php.net/note/delete/99141
Reject -- https://master.php.net/note/reject/99141
Search -- https://master.php.net/manage/user-notes.php