Commit Graph

12 Commits

Author SHA1 Message Date
Santiago Gimeno
1cd7143dc5 src: arm '_end' listener as soon as possible 2015-12-22 15:09:45 +01:00
Santiago Gimeno
0a3eaafb2b src: fix reader disconnection logic
- 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.
2015-09-26 14:35:59 +02:00
Santiago Gimeno
0c5e07e0e5 src: migrate pthreads to uv_threads
- 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.
2015-05-27 16:09:29 +02:00
Santiago Gimeno
b9afcfe74b src: fix typo 2014-09-19 11:03:18 +02:00
Santiago Gimeno
3c8b2c9f4b src: add disposition parameter to disconnect 2014-08-06 12:06:17 +02:00
Santiago Gimeno
279bc112ce src: improve SCardConnect interface
- 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.
2014-07-29 12:18:20 +02:00
Santiago Gimeno
ef475d882e src: fix readers detection logic
- Also, upgrade buffertools that allows to use it only when needed.
2014-07-28 13:35:53 +02:00
Santiago Gimeno
c3b83ed118 Fix typo 2014-07-28 13:14:31 +02:00
Santiago Gimeno
c3d947860c Implement SCardControl 2014-07-28 11:49:35 +02:00
Santiago Gimeno
2bb9804a1f Refactor pcscslite.js
- Improve and fix how we parse and handle cardreader strings.
2013-08-08 13:45:31 +02:00
Santiago Gimeno
3f2a1b5e4e CardReader status event should return the ATR
- 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
2013-07-05 17:25:18 +02:00
Santiago Gimeno
b40f9a2f88 Initial Implementation 2013-06-20 16:37:28 +02:00