need socket binding code

Joined
Aug 13, 2011
Messages
200
Reaction score
7
Points
18
Location
West Sussex
I dont beleive you can access network sockets in pure Objective-C, the socket part of Cocoa Touch
Framework is based on the Core Foundation Framework, which is a low level C based framework.

You can convert primitive C data types into Objective-C data types, but all of your code will have to
be calling C functions and structs.

The main Apple resource for the CFSocket reference is at the link below.

https://developer.apple.com/library/ios/#documentation/CoreFoundation/Reference/CFSocketRef/Reference/reference.html#//apple_ref/doc/uid/20001445

And the reference guide is also worth reading.

https://developer.apple.com/library/ios/#documentation/Networking/Conceptual/CFNetwork/Introduction/Introduction.html#//apple_ref/doc/uid/TP30001132

Regards Mark
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top