Socket.shutdown() error handling

Torarin Hals Bakke torarind at gmail.com
Sun Aug 22 05:22:49 PDT 2010


Perhaps Socket.shutdown() in std.socket should throw an exception in case of
an error? Unlike close(), it may fail before you are done with the socket.
One may, for instance, want to wait for a confirmation message from the
client after sending the FIN packet with shutdown(SocketShutdown.SEND). If
the client disconnected, POSIX shutdown() can inform you with erro ENOTCONN.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20100822/550f0d71/attachment.html>


More information about the Digitalmars-d mailing list