HiTECNOLOGYs
HiTECNOLOGYs

Reputation: 327

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.

Upvotes: 1

Views: 554

Answers (2)

PeyloW
PeyloW

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

Chuck
Chuck

Reputation: 237100

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

Upvotes: 3

Related Questions