search for: on_read

Displaying 2 results from an estimated 2 matches for "on_read".

Did you mean: of_read
2014 Mar 14
3
Sys::Virt integration into other event loops
Hi all, I’m trying to integrate Perl’s Sys::Virt into an already existing AnyEvent program. I’m accustomed to writing things like this: use EV; use AnyEvent; use AnyEvent::Handle; my $h = AnyEvent::Handle->new(fh => $fh, …); $h->on_read(sub { … }); EV::run; ## start the event loop I can add some code in the on_read() handler and every time the $fh has something to read, it will fire off. I’d like to do something similar with Sys::Virt, but I can’t seem to wrap my head around its event system. The only examples I can find are th...
2014 Mar 14
0
Re: Sys::Virt integration into other event loops
...te: > Hi all, > > I’m trying to integrate Perl’s Sys::Virt into an already existing AnyEvent program. > > I’m accustomed to writing things like this: > > use EV; > use AnyEvent; > use AnyEvent::Handle; > my $h = AnyEvent::Handle->new(fh => $fh, …); > $h->on_read(sub { … }); > > EV::run; ## start the event loop > > I can add some code in the on_read() handler and every time the $fh has > something to read, it will fire off. I’d like to do something similar > with Sys::Virt, but I can’t seem to wrap my head around its event system. >...