-1 and orderly socket shutdown

Leon Finker leonfin at optonline.net
Wed Apr 22 12:21:02 PDT 2009


Is there a reason that result of -1 is used instead of somewhat universal 0
for detecting graceful shutdown on recv side for sockets? Thanks!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-discuss/attachments/20090422/9645d234/attachment.html 


More information about the nio-discuss mailing list