<p>Shutdown didn't seem to do anything either fwiw. If I got to recv there wasn't anything I could find that would make it return other than closing the client end.</p>
<p>John<br>
=:-></p>
<div class="gmail_quote">On Oct 26, 2011 6:47 AM, "Martin Pool" <<a href="mailto:mbp@canonical.com">mbp@canonical.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So if I'm understanding you correctly and if I remember my previous<br>
experience with Windows sockets, the heart of it is that 'close'<br>
really closes the file handle associated with the socket, but not<br>
directly the socket itself, and for that you should use shutdown.<br>
Conversely on Unix, normally you should just close the socket and you<br>
will only use shutdown if you want to do something tricky with the<br>
socket being half-closed, or if you want to abruptly disconnect losing<br>
buffered data.<br>
<br>
Martin<br>
</blockquote></div>