Boost logo

Boost Users :

From: Oliver.Kowalke_at_[hidden]
Date: 2006-01-30 01:47:40


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net