2015-12-20 14:57 GMT+01:00 Arnaud Loonstra <[email protected]>: > Hi all, >
Hello, > I was going through the internals of libpcsclite and as I noticed it uses > IPC to communicate with the daemon I was wondering if it is possible to > retrieve the socket's fd to add it to a poller? > > I noticed MessageReceive() in wincard_msg.c:449 is already using select > (469) > > Is this possible through the current API? > > No, it is not possible through the current API. The API is a "standard" defined by the PCSC workgroup [1] and can't be changed like that. 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. What do you want to do exactly? Bye [1] http://pcscworkgroup.com/specifications/overview.php [2] https://pcsclite.alioth.debian.org/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24 -- Dr. Ludovic Rousseau
_______________________________________________ Pcsclite-muscle mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
