
30 Jan
2006
30 Jan
'06
6:47 a.m.
Hello Petro,
would the eofbit be set if I return EOF in device::write? How can I set failbit from device?
Does it make sense for write to return EOF? EOF means "no more data". But writing is inserting data, not requesting it.
If you write to a socket and the peer has already closed the socket you get an EPIPE error. How would you propagate this to your application? Oliver