O'Reilly logo

Advanced Mac OS X Programming: The Big Nerd Ranch Guide by Mark Dalrymple

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercises

  1. Change the chatter programs to use datagrams. The messages are small enough to fit into a single datagram. Given the quality of discussion in most chat rooms, a lost packet here or there is probably not too much of an issue. Since the messages fit into packet boundaries and since recvfrom() will not coalesce packets like socket streams, this should simplify a lot of the code.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required