Reputation: 327
I want to use p2p in my game. How can I get IP adress and use sockets on objc? Please help me.
Upvotes: 1
Views: 554
Reputation: 36752
Use raw BSD sockets as you have always done. But are you sure you do not want to use a better abstraction provided by Core Foundation or Foundation?
I think you should look at session 207 and 208 of WWDC 2010, where Quinn "the Eskimo!" details proper, safe and efficient networking on iOS.
http://developer.apple.com/videos/wwdc/2010/
Upvotes: 1
Reputation: 237100
OS X includes standard BSD sockets. Type man socket
in the Terminal for the socket API docs.
Upvotes: 3