Saurabh
Saurabh

Reputation: 22893

can we use POSIX sockets in iPhone

Can i use POSIX sockets in iPhone OS?

Upvotes: 2

Views: 2138

Answers (2)

taskinoor
taskinoor

Reputation: 46037

iSO Manual Pages says that socket system call is available for use. So you can, given that you really want to go down this low level and ready to manage everything.

Upvotes: 0

hotpaw2
hotpaw2

Reputation: 70733

Yes, with a few caveats.
A POSIX socket connect will not turn on the cellular radio, so you may have to use a higher level network protocol to pre-flight any socket connection. Blocking read/writes to a socket should be done in a thread other than the main thread unless you want to block the UI of your app.

Upvotes: 6

Related Questions