[Pcsclite-muscle] libpcsclite API file descriptor for polling?

Ludovic Rousseau ludovic.rousseau
Sun Dec 20 13:37:15 PST 2015

2015-12-20 14:57 GMT+01:00 Arnaud Loonstra <arnaud at sphaero.org>:

> Hi all,


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


[1] http://pcscworkgroup.com/specifications/overview.php

 Dr. Ludovic Rousseau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pcsclite-muscle/attachments/20151220/0e0ca436/attachment.html>

More information about the pcsclite-muscle mailing list