<span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt">>There is - it involves using gnulib. But that is only for C and C++ - I<br />>have no idea how this translates over to C#<div><br /></div><div>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 ?</div><div><br /></div><div>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#</div><div><br /></div><div>regards</div><div><br /></div><div>Arnaud<br /><div id="divSignature"></div><br /><br /><span style="font-family: tahoma, arial, sans-serif; font-size: 10pt; "><hr size="2" width="100%" align="center" /><strong>De</strong>: "Eric Blake" <eblake@redhat.com><br /><strong>Envoyé</strong>: lundi 31 janvier 2011 19:37<br /><strong>A</strong>: arnaud.champion@devatom.fr<br /><strong>Objet</strong>: Re: [libvirt] Raising events for testing</span><br /><br />On 01/30/2011 05:21 AM, arnaud.champion@devatom.fr wrote:<br />> Hi,<br />> <br />> One thing I need to understand, in the callback python or c samples, the<br />> fileDescriptor is on a socket or on a pipe ?<br /><br />Libvirt uses gnulib to guarantee that poll() works on file descriptors;<br />all socket operations are magically mapped by gnulib to behave like file<br />descriptors, so that you don't have to worry about the (less-useful)<br />restrictions of windows poll() only working on sockets.<br /><br />>> Okay I have understand the use and mean of poll (pollfd...<br />>> bla...bla...bla...)<br />>> I have also discover that there is no Win32 equivalent which work with<br />>> a file descriptor (unix way...).<br /><br />There is - it involves using gnulib.  But that is only for C and C++ - I<br />have no idea how this translates over to C#.<br /><br />-- <br />Eric Blake   eblake@redhat.com    +1-801-349-2682<br />Libvirt virtualization library http://libvirt.org<br /><br /><br /><br /></div></span>