[Pcsclite-muscle] libpcsclite API file descriptor for polling?
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
> 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  and can't be
changed like that.
I would propose to use an intermediate thread that calls
SCardGetStatusChange()  (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?
Dr. Ludovic Rousseau
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pcsclite-muscle