wjwwood / serial

Cross-platform, Serial Port library written in C++
http://wjwwood.github.com/serial/
MIT License
2.11k stars 1.02k forks source link

Implement waitReadable and waitByteTime on Windows #269

Open mrchipset opened 2 years ago

mrchipset commented 2 years ago

In order to implement timeout function of waitReadable, MS Asynchronized I/O feature is introduced with FILE_FALG_OVERLAPPED flag of CreateFileW method.

Both read and write method have been refactored to support asynchronized I/O.

I have briefly tested it with test_serial subproject. It seems work fine. Looking forward to more testing.