Displaying 1 result from an estimated 1 matches for "vireventaddtimeoutfunc".
2011 May 12
3
libvirt connection timeout
Hi all,
I would like to set a short connection timeout (only some seconds) when using libvirt in my Python program instead of the long default one.
I found the C function:?virEventAddTimeoutFunc()?in the C libvirt API here:
http://libvirt.org/html/libvirt-libvirt.html#virEventAddTimeoutFunc
and?eventInvokeTimeoutCallback(timer, callback, opaque)?in?libvirt.py?around the line#150 but I do not know how to use it. I did not find any example on the net.
?
I tried this but I get a segmentati...