Tom Fishwick wrote:
> Does anyone know how I can put a timeout on a cout/cin stream? A
> pointer to some documentation that explains it would be great.
setitimer() should cause the underlying read() or write() call to be
interrupted (you need to install an empty handler for SIGALRM).
However, if this is wrapped in some higher-level code which read()s or
write()s until completion, then you're probably out of luck.
--
Glynn Clements <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]