By closed connection I mean that the other end closed it gracefully.
I would expect to receive a 0 from the write() as returned value, but please correct me if I am wrong.
By closed connection I mean that the other end closed it gracefully. I would
Share
Exact behavior may depend on underlying OS but in general you should get an error, i.e.,
writewill return-1and seterrno(toECONNRESETfor instance).