Re: callback question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ïOkay, I understand.

When the AddHandle function, I receive a fd (FileDescription), its value is 3... always... Is that normal ? Is that file descriptor on a socket or on a file ? (In windows, when can use the WSAPoll function but it works on ly on sockets)

Regards,

Arnaud

--------------------------------------------------
From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Sent: Monday, January 31, 2011 12:43 PM
To: <arnaud.champion@xxxxxxxxxx>
Cc: <libvir-list@xxxxxxxxxx>
Subject: Re:  callback question

On Mon, Jan 31, 2011 at 12:16:24PM +0100, arnaud.champion@xxxxxxxxxx wrote:
?Hi,

Something I need to understant about callbacks:

if I install 2 callback via DomainEventRegisterAny (lifecycle
for the first and graphics for the second for example), am I
right if I said that the AddHandleFunc should be called 2 times ?

No, there is no direct relationship between the number of
calls to DomainEventRegister* and AddHandleFunc. In the
current impl we only call AddHandleFunc once per virConnect
object, but again that isn't guarenteed - different libvirt
drivers will invoke AddHandleFunc / AddTimeoutFunc a different
number of times, as is most suitable for their precise needs.

Daniel


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]