16

I saw this in some official iOS apps, so I know it's possible and permitted.

I want to write a small socket server in iOS that some other application, that I will write for a desktop machine, can connect to and read data from.

Anyone did something like this and can help me with some clues or knows a good starting point ?

Nicu Surdu
  • 8,172
  • 9
  • 68
  • 108

1 Answers1

13

You should read the Stream Programming Guide, the WiTap sample, and many other Programming Guides, Samples and Documentation in Apple's Doc, you will find everything there (including detailed explanations and code)

If you simply go to the home page of iOS SDK documentation and go in the "Networking & Internet Topics" you have plenty of resources too, including the Network & Internet Starting Point guide and much more.

AliSoftware
  • 32,623
  • 6
  • 82
  • 77
  • I don;t know why this didn't show up in Google... I believe I should of thought to also look there... WiTap example seems exactly what I was needing and Stream Programming Guide looks like it could feel any void that I might encounter on my way. Thank you very much ;) – Nicu Surdu Oct 02 '11 at 13:15
  • 4
    Except ... Apple's docs are completly missing the "server" part of this. The links provided are all dead now too (Apple keeps deleting their docs :( ) – Adam Jun 14 '13 at 16:27
  • WiTap is great example. – lee Nov 03 '16 at 02:12