- A reader disconnection can't be detected by SCardGetStatusChange in the reader
(cardreader.cpp) but by detecting that the reader doesn't appear in the list of
readers retrieved in pcsclite.cpp.
- The list of readers is now stored in an object where the keys are the names of
the readers. When a reader disconnection is detected, the reader is closed
triggering the 'end' event. Then the reader is removed from the readers list.
- So it can be compatible in every platform supported by libuv.
- Use attached threads instead of detached.
- Remove all CardReader 'status' listeners before emitting the
'end' event.
- We can optionally pass the share_mode and preferred_protocol options. They are
optional to keep backwards compatibility.
- Update README
- Define constants in C++ land.
- Of the inserted card.
- Refactoring of the code that creates a Buffer instance into a
separate function.
- Update the example and README
- It fixes bug #2