<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-12-20 14:57 GMT+01:00 Arnaud Loonstra <span dir="ltr"><<a href="mailto:arnaud@sphaero.org" target="_blank">arnaud@sphaero.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br></blockquote><div><br></div><div>Hello,<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I was going through the internals of libpcsclite and as I noticed it uses<br>
IPC to communicate with the daemon I was wondering if it is possible to<br>
retrieve the socket's fd to add it to a poller?<br>
<br>
I noticed MessageReceive() in wincard_msg.c:449 is already using select<br>
(469)<br>
<br>
Is this possible through the current API?<br><br></blockquote><div><br></div><div>No, it is not possible through the current API. <br>The API is a "standard" defined by the PCSC workgroup [1] and can't be changed like that.<br></div></div><br></div><div class="gmail_extra">I would propose to use an intermediate thread that calls SCardGetStatusChange() [2] (or whatever PC/SC function you want to poll) that would write to a file descriptor you created for that.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">What do you want to do exactly?<br><br></div><div class="gmail_extra">Bye<br></div><div class="gmail_extra"><br>[1] <a href="http://pcscworkgroup.com/specifications/overview.php" target="_blank">http://pcscworkgroup.com/specifications/overview.php</a><br>[2] <a href="https://pcsclite.alioth.debian.org/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24">https://pcsclite.alioth.debian.org/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24</a><br><br>-- <br><div> Dr. Ludovic Rousseau</div>
</div></div>