Zero Configuration Networking: The Definitive Guide

book cover
Zero Configuration Networking: The Definitive Guide
By Stuart Cheshire, Daniel H. Steinberg
Publisher: O'Reilly
Pub Date: December 2005
ISBN: 0-596-10100-7
Pages: 252

Table of Contents  | Index

It used to be that two laptops, sitting side by side, couldn't communicate with each other; they may as well have been a thousand miles apart. But that was then, before the advent of Zero Configuration Networking technology. This amazing cross-platform open source technology automatically connects electronic devices on a network, allowing them to interoperate seamlessly-without any user configuration. So now you don't have to lift a finger! Needless to say, it has completely changed the way people connect to devices and programs for printing, file sharing, and other activities.

Zero Configuration Networking: The Definitive Guide walks you through this groundbreaking network technology, with a complete description of the protocols and ways to implement network-aware applications and devices.

Written by two Zero Configuration Networking experts, including one of Apple's own computer scientists, the book covers more than just file sharing and printing. Zero Configuration Networking also enables activities such as music and photo sharing and automatic buddy discovery on Instant Messaging applications. In fact, Zero Configuration Networking can be used for virtually any device that can be controlled by a computer. And this handy guide has the inside scoop on all of its capabilities-and how you can easily apply them in your own environment.

For the technically advanced, Zero Configuration Networking: The Definitive Guide examines the three core technologies that make up Zero Configuration Networking: Link-Local Addressing, Multicast DNS, and DNS Service Discovery. It also reviews a series of APIs, including C-API, Java API, CFNetServices, and Cocoa's NSNetServices.

Whether you want to understand how iTunes works, or you want to network a series of laptops and other devices at your office for maximum efficiency, you'll find all the answers in this authoritative guide.

book cover
Zero Configuration Networking: The Definitive Guide
By Stuart Cheshire, Daniel H. Steinberg
Publisher: O'Reilly
Pub Date: December 2005
ISBN: 0-596-10100-7
Pages: 252

Table of Contents  | Index

   Praise for Zero Configuration Networking: The Definitive Guide
      Audience for This Book
      The Zeroconf Technology
      The Zeroconf DNS Service Discovery APIs
      Conventions Used in This Book
      Using Code Examples
      Comments and Questions
      Safari Enabled
        Chapter 1.  Introduction to Bonjour and Zeroconf
      Section 1.1.  Service Discovery with Zeroconf
      Section 1.2.  Replacing the AppleTalk Name Binding Protocol
      Section 1.3.  Summary
        Chapter 2.  IP Addresses Without DHCP
      Section 2.1.  Obtaining an IP Address
      Section 2.2.  Claiming a Link-Local IP Address
      Section 2.3.  Summary
        Chapter 3.  Names Without DNS
      Section 3.1.  A Brief Tour of DNS
      Section 3.2.  The Zeroconf Namespace
      Section 3.3.  Multicast DNS
      Section 3.4.  Claiming Your Local Name
      Section 3.5.  The Structure of the Multicast DNS Message
      Section 3.6.  Summary
        Chapter 4.  Browsing for Services
      Section 4.1.  Zero Configuration Operation
      Section 4.2.  Finding Services, Not Devices
      Section 4.3.  Knowing the Protocol
      Section 4.4.  Building on DNS
      Section 4.5.  Late Binding
      Section 4.6.  DNS-SD TXT Records
      Section 4.7.  Summary
        Chapter 5.  Service Discovery Beyond the Local Link
      Section 5.1.  Domain Enumeration
      Section 5.2.  Advertising Static Services
      Section 5.3.  Wide-Area Preference Settings
      Section 5.4.  Dynamic DNS Updates
      Section 5.5.  DNS Long-Lived Queries (DNS-LLQ)
      Section 5.6.  NAT Port Mapping Protocol (NAT-PMP)
      Section 5.7.  Summary
        Chapter 6.  Getting Started with Bonjour/Zeroconf
      Section 6.1.  Working with Bonjour/Zeroconf
      Section 6.2.  The Command-Line Tool
      Section 6.3.  Summary
        Chapter 7.  Using the C APIs
      Section 7.1.  Asynchronous Programming Model
      Section 7.2.  Event Handling with a select( ) Loop
      Section 7.3.  Using the DNSServiceDiscovery APIs
      Section 7.4.  Event Handling with Cocoa RunLoop or Core Foundation CFRunLoop
      Section 7.5.  Event Handling with Microsoft Windows GetMessage( ) Message Loop
      Section 7.6.  Event Handling with Microsoft Windows MFC
      Section 7.7.  Event Handling with Independent Threads
      Section 7.8.  Summary
        Chapter 8.  Using the Java APIs
      Section 8.1.  Understanding the APIs
      Section 8.2.  Using the APIs
      Section 8.3.  An Extended Example: Tic-Tac-Toe
        Chapter 9.  Using the CFNetwork and Cocoa APIs
      Section 9.1.  Using the CFNetServices API
      Section 9.2.  Using the NSNetServices API in Cocoa
      Section 9.3.  A Cocoa Bonjour Extended Example
        Chapter 10.  Ruby, Python, and Other Languages
      Section 10.1.  Ruby
      Section 10.2.  Python
      Section 10.3.  Embedded Responders
   About the Authors