Synchronous read from a serial port with timeout?
Hello, Is there a way to use synchronous read function with a timeout mechanism? I want my code to block on read function till data/error comes from the serial port or timeout expires. How can I do this with asio? Best Regards, Gözde Bahar Koş ###################################################################### Dikkat: Bu elektronik posta mesaji kisisel ve ozeldir. Eger size gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz. Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmekte, guvenlik nedeni ile kontrol edilerek saklanmaktadir. Mesajdaki gorusler ve bakis acisi gondericiye ait olup Aselsan A.S. resmi gorusu olmak zorunda degildir. ###################################################################### Attention: This e-mail message is privileged and confidential. If you are not the intended recipient please delete the message and notify the sender. E-mails to and from the company are monitored for operational reasons and in accordance with lawful business practices. Any views or opinions presented are solely those of the author and do not necessarily represent the views of the company. ######################################################################
Is there a way to use synchronous read function with a timeout mechanism? I want my code to block on read function till data/error comes from the serial port or timeout expires. How can I do this with asio?
Try this way: http://lists.boost.org/Archives/boost/2007/04/120339.php
participants (2)
-
Gözde Bahar KOŞ
-
Igor R