Skip to Main Content
Beginning iOS 4 Application Development
book

Beginning iOS 4 Application Development

by Wei-Meng Lee
October 2010
Beginner content levelBeginner
655 pages
14h 9m
English
Wrox
Content preview from Beginning iOS 4 Application Development

Chapter 18. Bonjour Programming

WHAT YOU WILL LEARN IN THIS CHAPTER

  • How to publish a service on the network using the NSNetService class

  • How to discover services on the network using the NSNetServiceBrowser class

  • How to resolve the IP addresses of services on the network

Bonjour is Apple's implementation of the Zeroconf protocol, which enables the automatic discovery of computers, devices, and services on an IP network. In this chapter, you will learn how to implement Bonjour on the iPhone by using the NSNetService class to publish a service. You will also use the NSNetServiceBrowser class to discover services that have been published.

Creating the Application

In this section, you will create the user interface for the application. You'll use a Table view to display the users that you have discovered on the network. As users are discovered, they will be added to the Table view.

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

Beginning iOS 5 Application Development

Beginning iOS 5 Application Development

Wei-Meng Lee

Publisher Resources

ISBN: 9780470918029Purchase book