title: Using shutdown instead of close for reuse of socket
body: <p>Using shutdown instead of close on a socket, is it possible to connect more then once on the socket?</p>
  
  <pre><code>s = socket(...);
  
  for(;;)
  
  {
  
       connect(s,...);
  
       //do some work
  
       shutdown (s, 2);
  
  }
  </code></pre>
  
  <p>I'm testing it and getting errno 22. Is it supposed to work at all?</p>
  
  <p>I want to have it this way since the application is doing the loop pretty fast and my sockets end up in the TIME_WAIT state holding alot of resourses.</p>
  
  <p>I have tried SO_REUSEADDR but my sockets still end up in TIME_WAIT state..</p>
  
  <p>Runnig vxworks 5.5.1</p>