search for: add_handl

Displaying 12 results from an estimated 12 matches for "add_handl".

Did you mean: add_handle
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
2007 Mar 08
6
Transfer-encoding: gzip
Hello! What is the simplest way to make merb respond to the client sending Accept-Encoding: gzip? Just checking if it exists, otherwise I''ll implement it myself. Regards, Magnus
2015 Jul 24
0
libvirt events and Ruby's EventMachine
...callbacks I provide. I know this because when I reset domains (virsh reset VM) I see messages appear from the Handlers::notify_readable(), which should then invoke Libvirt::event_invoke_handle_callback() - but the output from the callbacks never appears. Typical output from the program looks like: add_handle fd=11 events=1 add_timer interval=-1 :notify_readable id=0 fd=11 events=1 update_timer id=0 interval=0 :notify_readable id=0 fd=11 events=1 :notify_readable id=0 fd=11 events=1 ... When I enabled debugging by setting LIBVIRT_DEBUG to 1 the output from libvirt appears to be the same as event_test....
2006 Feb 18
0
activerecord connections with xmlrpc
...:adapter => "mysql", # etc. etc. ) end # given a user id get the user name def get_username(id) u = User.find(id) return u.username end s = XMLRPC::Server.new(8080) s.add_handler("get_username") do |user_id| get_username(user_id) end s.set_default_handler do |name, *args| raise XMLRPC::FaultException.new(-99, "Method #{name} missing" + " or wrong number of parameters!") end -----------------------------...
2014 Mar 14
0
Re: Sys::Virt integration into other event loops
...re's no particularly good docs or example code here, but you can see how todo this by looking at the Perl test suite. eg the t/800-events.t file. This test suite does a pure perl event loop based on select(). You'd probably want to adapt that and call into AnyEvent, instead of select(). The add_handle/remove_handle/update_handle/add_timeout/update_timeout/ remove_timeout methods should all call into appropriate AnyEvent APIs. Then you just need to run AnyEvent as normal. If you get this all working please do send back your code for it - it would be nice to add a examples/anyevent.pl demo file...
2010 Apr 22
2
[PATCH 1/2] Try to load the loop module before running mkinitrd
mkinitrd needs to mount files using loop. loop might be a module, so try to load it first. --- lib/Sys/VirtV2V/GuestOS/RedHat.pm | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/lib/Sys/VirtV2V/GuestOS/RedHat.pm b/lib/Sys/VirtV2V/GuestOS/RedHat.pm index 0e469f5..08027b6 100644 --- a/lib/Sys/VirtV2V/GuestOS/RedHat.pm +++ b/lib/Sys/VirtV2V/GuestOS/RedHat.pm @@ -1114,6
2007 Apr 13
0
[954] branches/wxruby2/wxwidgets_282: Additions to Image API 2.6 -> 2.8, remove comment cruft
...;cx"> </span><span class="cx"> The following image handlers are available. *BMPHandler* is always </span><span class="cx"> installed by default. To use other image formats, install the appropriate </span><del>-handler with "Image#add_handler":image.html#Image_addhandler or </del><ins>+handler with "Image#add_handler":image.html#Image_addhandler or call </ins><span class="cx"> "InitAllImageHandlers":initallimagehandlers.html. </span><span class="cx"> &...
2006 Dec 03
0
[776] trunk/wxruby2: Added Bitmap#draw method, updated sample
...ry device context. </del><ins>+Do not delete a bitmap that is selected into a memory device context, +for example during a call to "draw":#Bitmap_draw . </ins><span class="cx"> </span><span class="cx"> h3(#Bitmap_addhandler). Bitmap#add_handler </span><span class="cx"> </span><span class="lines">@@ -286,6 +287,20 @@ </span><span class="cx"> </span><span class="cx"> "Bitmap.new":bitmap.html#Bitmap_new </span><span class="cx&q...
2006 May 22
3
core-model-2
I''ve added experiments/core-model-2 to SVN. I think this is pretty clean and satisfactory. Jeff, please have a look and see if you like the placement of timeouts (which are currently unimplemented). Any event now has the possibility of a timeout. To get an application-level timeout, you''d just post an event with a timeout to a nil target. When the timeout expires, the errback
2009 Aug 03
1
[PATCH 1/2] Convert all TABs-as-indentation to spaces.
...emu. */ - kill (qemu_pid, 9); - _exit (0); + /* Parent's gone away, qemu still around, so kill qemu. */ + kill (qemu_pid, 9); + _exit (0); } sleep (2); } @@ -1257,8 +1257,8 @@ guestfs_launch (guestfs_h *g) g->stdout_watch = g->main_loop->add_handle (g->main_loop, g, g->fd[1], - GUESTFS_HANDLE_READABLE, - stdout_event, NULL); + GUESTFS_HANDLE_READABLE, + stdout_event, NULL); if (g->stdout_watch == -1) { error (g, _("could not watch qemu stdout&quot...
2010 Jan 29
4
[FOR REVIEW ONLY] ESX work in progress
The following patches are where I'm currently at with ESX support. I can now import a domain from ESX along with its storage. Note that I'm not yet doing any conversion. In fact, I've never even tested past the import stage (I just had an exit in there). The meat is really in the 4th patch. The rename of MetadataReader->Connection was because the Connection is now really providing
2010 Feb 01
9
[ESX support] Working ESX conversion for RHEL 5
With this patchset I have successfully[1] imported a RHEL 5 guest directly from ESX with the following command line: virt-v2v -ic 'esx://yellow.marston/?no_verify=1' -op transfer RHEL5-64 Login details are stored in ~/.netrc Note that this is the only guest I've tested against. I haven't for example, checked that I haven't broken Xen imports. Matt [1] With the exception of