Group: comp.lang.c++ · Group Profile · Search for serial ioctl implementation in comp.lang.c++
Author: coal
Date: Mar 6, 2008 13:59
..., though, I think it make sense to focus on sockets first. In the classical implementation of pipes (under Unix V7, for example), a read from a pipe ... out how many more were there, and read them. According to R. Stevens ioctl() works on pipes too for Unix implementations. Probably using ioctl is more portable than fstat to determine how much data is available. Brian Wood
|