14Network Programming With Sockets
The native Mac OS X networking API is Berkeley sockets, variants of which are available on just about every platform available today. The sockets API is simultaneously elegant, needing just a couple of calls to set up network communications of different kinds, and ugly. The data structures involved are awkward because there are few typedefs, so you have to use the struct keyword frequently along with frequent casting.
One of the problems with networking in general, and sockets in particular, is that there is a lot of documentation and a lot of features of varying levels of complexity and obscurity. It is easy to get lost in the details and be unable to get the basics working. In this chapter, we are going to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access