开发者

can we use POSIX sockets in iPhone

开发者 https://www.devze.com 2023-01-16 03:11 出处:网络
开发者_开发技巧Can i use POSIX sockets in iPhone OS?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-f

开发者_开发技巧Can i use POSIX sockets in iPhone OS?


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消