title: Why should I use shutdown() before closing a socket?
body: <p>On this MSDN page:</p>
  
  <p><a href="https://msdn.microsoft.com/en-us/library/windows/desktop/bb530747.aspx" rel="noreferrer">Sending and Receiving Data on the Client</a></p>
  
  <p>It recommends closing the sending side of the socket by using:</p>
  
  <pre><code>shutdown(SOCK_ID, SD_SEND);
  </code></pre>
  
  <p>Why should I? </p>
  
  <p>Maybe I dont have to, and its just a recommendation?  Maybe its for saving memory?  Maybe for speed?</p>
  
  <p>Does anyone have an idea?</p>