I need to establish a P2P UDP and TCP Connection between two Users. Both of them are behind a NAT. A little r开发者_如何学Goesearch leads me to STUN, TURN and ICE.
Is there any open source iOS (library) which support the same?
FaceTime in iPhone also uses ICE, STUN, TURN to NAT traversal, so does iOS SDK exposes such API's?
I found nICRr code in resiprocate source code (www.resiprocate.org), which I am able to test on Mac OS X for STUN part. Did anybody tried using the same for iOS 4.0or above?
Thanks, rodney
1> use PJSIP it has all the items you request and it now builds properly on iOS
2> no
3> I dont know, but PJSIP has STUN, TURN and ICE libraries and its modular
It's not open-source, but we put together a library called IceLink that does P2P streaming using ICE/STUN/TURN with full NAT traversal. It has client SDKs for iOS, Mac, and others.
below are answer to my own queries Is there any open source iOS (library) which support the same? -Yes, resiprocate source code is available , it has nicer folder. it can be compiled to mac os x and ios with some efforts FaceTime in iPhone also uses ICE, STUN, TURN to NAT traversal, so does iOS SDK exposes such API's? - No I found nICRr code in resiprocate source code (www.resiprocate.org), which I am able to test on Mac OS X for STUN part. Did anybody tried using the same for iOS 4.0or above? - it can be easily recompiled to ios4
精彩评论