Re: Raising events for testing

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

 



>There is - it involves using gnulib. But that is only for C and C++ - I
>have no idea how this translates over to C#

So if I understand well, are you saying that if I use gnulib windows version via C# (pinvoke, this kind of magic) I will have access to poll function ?

Intersting, I'll take a look. I hope gnulib if published via a dll under windows, if so, I'm pretty sure I can use it with C#

regards

Arnaud



De: "Eric Blake" <eblake@xxxxxxxxxx>
Envoyé: lundi 31 janvier 2011 19:37
A: arnaud.champion@xxxxxxxxxx
Objet: Re: Raising events for testing


On 01/30/2011 05:21 AM, arnaud.champion@xxxxxxxxxx wrote:
> Hi,
>
> One thing I need to understand, in the callback python or c samples, the
> fileDescriptor is on a socket or on a pipe ?

Libvirt uses gnulib to guarantee that poll() works on file descriptors;
all socket operations are magically mapped by gnulib to behave like file
descriptors, so that you don't have to worry about the (less-useful)
restrictions of windows poll() only working on sockets.

>> Okay I have understand the use and mean of poll (pollfd...
>> bla...bla...bla...)
>> I have also discover that there is no Win32 equivalent which work with
>> a file descriptor (unix way...).

There is - it involves using gnulib. But that is only for C and C++ - I
have no idea how this translates over to C#.

--
Eric Blake eblake@xxxxxxxxxx +1-801-349-2682
Libvirt virtualization library http://libvirt.org



--
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]