Using socket API on IPhone

Posted by dl3nar on Stack Overflow See other posts from Stack Overflow or by dl3nar
Published on 2010-03-12T08:55:00Z Indexed on 2010/03/12 8:57 UTC
Read the original article Hit count: 505

Hi, for a little project I have to do the following task on my IPhone:

  • open a TCP socket
  • send a command to the server
  • shutdown the WRITE part of the connection
  • read the response from the server
  • close the connection

I'm not experienced with socket programming - I've just started with network programming and I've already used the CFStream interface. But obviously streams are not adequate for this task.

Who can point me in the right direction? I tried to find a tutorial on Apples website about sockets, but there is nothing. Regards, Thomas

© Stack Overflow or respective owner

Related posts about iphone-sdk

Related posts about socket-programming