Chapter 6. Bonjour

In this chapter, we will cover:

  • Publishing a Bonjour service
  • Discovering a Bonjour service
  • Resolving a Bonjour service
  • Creating an echo server that uses Bonjour to advertise the service
  • Creating an echo client that uses Bonjour to discover the service

Introduction

Bonjour is Apple's implementation of Zero Configuration Networking (Zeroconf). Zeroconf is a methodology that automatically creates a usable computer network without manual operator intervention or the need for special configuration servers. Bonjour locates devices and services on a local network using the multicast Domain Name System (mDNS) service.

In other words, Bonjour allows for the automatic discovery and configuration of devices and services without the user having ...

Get iOS and OS X Network Programming Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.