简体   繁体   中英

How to use sockets on objc?

I want to use p2p in my game. How can I get IP adress and use sockets on objc? Please help me.

OS X includes standard BSD sockets. Type man socket in the Terminal for the socket API docs.

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM