c++ - How to find out if my COM port has recieved XOFF? -
i testing code serial port communication. using synchronous io keep things simple. have observed when pc recieves xoff program pauses, no more printing in console window. when program recieves xon starts running again.
what method exists find out if program's serial port has earlier recieved xoff (regardless of synchronous , asynchronous io) since com port driver shall prevent port sending characters out in case , better check if xoff recieved before calling writefile().
i think 1 way use clearcommerror() comstat struct. way? impression reading https://msdn.microsoft.com/en-us/library/ff802693.aspx if so, appears strange way of doing that.