c - Unix serial port programming: How to get number of bytes in output buffer? -
i know possible number of bytes in serial port input buffer using ioctl fionread example shows in "serial programming guide posix operating systems" (link: http://www.cmrr.umn.edu/~strupp/serial.html#5_1_3). there way same output buffer?
i ask because want know when bytes have been transmitted.
on windows, can done looking @ cboutque in comstat structure still have not found way in unix based systems.
if os supports consider ioctl tiocoutq.
like tiocinq/fionread it's not posix though.
Comments
Post a Comment