10

I am learning objective C.I like to know about client/server(socket) programming for iphone. I went through many answers,but still having many confusion with that flow and working.Can anyone help me out with code.

Mikulas Dite
  • 7,790
  • 9
  • 59
  • 99
EXC_BAD_ACCESS
  • 2,699
  • 2
  • 21
  • 25
  • possible duplicate of [iPhone socket program](http://stackoverflow.com/questions/1083017/iphone-socket-program) – Brad Larson Aug 20 '10 at 16:17
  • i cant repost my code here, because SO considers it spamming to repeat your answer. check out [this sample code and tutorial link][1]. works like a charm and is really simple to implement, less than 3 minutes and you are up and going (IF you have a socket server ready). [1]: http://stackoverflow.com/a/16171570/1166727 – tony gil Apr 23 '13 at 14:18

2 Answers2

9

Using CoreFoundation's CFStreams

Using raw sockets on the iPhone

Chuck
  • 234,037
  • 30
  • 302
  • 389
3

Go through this you will have to get basic idea of socket programming

http://ichuiphonedev.blogspot.in/2012/07/a-basic-idea-of-socket-programming-in.html

iPC
  • 5,916
  • 3
  • 26
  • 38
ios6
  • 101
  • 7