0

I am designing an app that needs to exchange data in real time over network and I am planning to use socket connection to achieve this. To keep the socket connection open in background I plan to declare my app as a VOIP app (I already know apple's rule prohibiting this and willing to take the risk), and use keepAliveTimeout to keep connections alive. Now can I declare and own a socket which will listen to any incoming data or I have to use an existing/specific socket given by Apple? Also is the port unique per app or per phone? Means if my app is continuing in background and also a call comes over Skype would they interfere with each other? Thanks in advance for response. Help would be appreciated.

DonDyck
  • 1,451
  • 5
  • 20
  • 35
  • Interfere in what sense? –  Feb 12 '13 at 21:08
  • What will happen if a my server sends data and Skype server sends data at the same time? – DonDyck Feb 12 '13 at 21:09
  • then the one chunk of data will arrive first, the other one second. –  Feb 12 '13 at 21:10
  • Does that mean there is only one socket available per iPhone and all VOIP apps use that listening socket only? Can you please cite apple developer document if possible? – DonDyck Feb 12 '13 at 21:14
  • IDK. In general, you shouldn't worry about that. –  Feb 12 '13 at 21:14

0 Answers0