node-serialport-bindings-cpp/src
Dustin Long 2c2a8b688c fix(windows): Asynchronous callbacks for reading and writing on Windows (#1313)
Instead of ReadFile and WriteFile, which block and transfer data synchronously, use ReadFileEx and WriteFileEx, which both allow async callbacks. In addition, change how timeouts are used for ReadFile*, using an unlimited timeout for the first byte, and no timeout for the rest of the data in the input buffer. This removes the need to poll entirely, while still retrieving all data available in the input buffer. In both cases, the I/O operations happen in their own threads, since Windows requires IOCompletion callbacks to wait for their calling thread to be in an "alertable wait state".

Fixes #1221
2017-09-02 16:10:53 -04:00
..
darwin_list.cpp [all] Unify the serialport.list output (#1266) 2017-07-29 19:40:39 -04:00
darwin_list.h [all] Unify the serialport.list output (#1266) 2017-07-29 19:40:39 -04:00
poller.cpp [unix] New read/write subsystem (#1212) 2017-07-05 09:12:31 -04:00
poller.h [unix] New read/write subsystem (#1212) 2017-07-05 09:12:31 -04:00
serialport.cpp [all] Unify the serialport.list output (#1266) 2017-07-29 19:40:39 -04:00
serialport.h [all] Unify the serialport.list output (#1266) 2017-07-29 19:40:39 -04:00
serialport_unix.cpp [all] Unify the serialport.list output (#1266) 2017-07-29 19:40:39 -04:00
serialport_unix.h [all] Unify the serialport.list output (#1266) 2017-07-29 19:40:39 -04:00
serialport_win.cpp fix(windows): Asynchronous callbacks for reading and writing on Windows (#1313) 2017-09-02 16:10:53 -04:00
serialport_win.h fix(windows): Asynchronous callbacks for reading and writing on Windows (#1313) 2017-09-02 16:10:53 -04:00