title: Using socket API on IPhone
body: <p>for a little project I have to do the following task on my IPhone:</p>
  
  <ul>
  <li>open a TCP socket </li>
  <li>send a command to the server</li>
  <li>shutdown the WRITE part of the connection</li>
  <li>read the response from the server</li>
  <li>close the connection</li>
  </ul>
  
  <p>I'm not experienced with socket programming - I've just started with network programming and I've already used the <code>CFStream</code> interface. But obviously streams are not adequate for this task.</p>
  
  <p>Who can point me in the right direction? I tried to find a tutorial on Apples website about sockets, but there is nothing.</p>