G'day,

I'm using pcsclite-1.3.0 and ccid-1.0.0.

I've got a thread that calls SCardEstablishContext(), then monitors card events by calling SCardListReaders() and SCardGetStatusChange().

This will works fine, until pcscd is killed. After that, SCardListReaders() returns an empty list and SCardGetStatusChange() returns SCARD_S_SUCCESS (since it is acting on a zero-length list of states).

If pcscd is restarted, SCardListReaders() and SCardGetStatusChange() still act as before: zero readers are returned, and both functions return SCARD_S_SUCCESS.

I assume that the original context needs to be released, and a new context obtained via a call to SCardEstablishContext().

Is there an API call to determine that the current context handle is no longer valid (for pcsclite, this would mean detecting that the underlying PC/SC daemon has been killed) so that SCardEstablishContext() can be called again?

-- Geoff
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to