Skip to Main Content
More iPhone 3 Development: Tackling iPhone SDK 3
book

More iPhone 3 Development: Tackling iPhone SDK 3

by Dave Mark, Jeff LaMarche
January 2010
Beginner to intermediate content levelBeginner to intermediate
576 pages
14h 57m
English
Apress
Content preview from More iPhone 3 Development: Tackling iPhone SDK 3

Chapter 9. Online Play: Bonjour and Network Streams

In the previous chapter, you saw how easy it is to create a networked application using GameKit. GameKit is cool, but currently it only supports online play using Bluetooth. If you want your networked programs to play on first-generation iPhones and iPod touches, or if you want to let people play over their local Wi-Fi connection or the Internet, you need to go beyond GameKit. In this chapter, we're going to do just that.

We'll take our TicTacToe project from Chapter 8 and add online play to it. We'll use Bonjour to let you find other players on your local network, and then create objects using CFNetwork, Apple's low-level networking framework, and the Berkeley sockets API to listen on the network ...

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.
Start your free trial

You might also like

Sams Teach Yourself iOS 6 Application Development in 24 Hours, Fourth Edition

Sams Teach Yourself iOS 6 Application Development in 24 Hours, Fourth Edition

John Ray
Migrating to Swift from Flash and ActionScript

Migrating to Swift from Flash and ActionScript

Radoslava Leseva Adams, Hristo Lesev

Publisher Resources

ISBN: 9781430225058Purchase book