On Sat, Dec 01, 2012 at 11:57:30PM +0800, ss_liao ss_l...@163.com wrote:
I'm beginner on libev, I can compile libev-4.11 in minGW, and I write some
code like this:
Your code is badly misformatted, so I mightoverlook some detail, but it looks
ok.
ev_io_start (loop, stdin_watcher);
On 12/5/12, Marc Lehmann schm...@schmorp.de wrote:
Your code is badly misformatted, so I mightoverlook some detail, but it
looks ok.
It's supposed to look ok, because it's the example program from the
SYNOPSIS section of the libev manual, only it's reformatted and most
comments are removed.
Hi,
I'm beginner on libev, I can compile libev-4.11 in minGW, and I write some
code like this:
#include ev.h
#include stdio.h // for puts
ev_io stdin_watcher;
ev_timer timeout_watcher;
static void stdin_cb (EV_P_ ev_io *w, int revents)
{
puts (stdin ready);
ev_io_stop (EV_A_ w);
ev_break (EV_A_