
Zero Configuration Networking: The Definitive Guide
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Intro
- Zero Configuration Networking: The Definitive Guide
- SPECIAL OFFER: Upgrade this ebook with O'Reilly
- A Note Regarding Supplemental Files
- Praise for Zero Configuration Networking: The Definitive Guide
- Foreword
- Preface
- 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
- Acknowledgments
- Stuart Cheshire
- Daniel H. Steinberg
- 1. Introduction to Bonjour and Zeroconf
- Service Discovery with Zeroconf
- Service Discovery
- Browse for services
- Available services
- Easy browsing
- Names and Addresses
- Claiming an IP address
- Claiming a name
- Replacing the AppleTalk Name Binding Protocol
- Name Services, Not Hardware
- Late Binding
- Finding Named Services
- Ease of Use
- Summary
- 2. IP Addresses Without DHCP
- Obtaining an IP Address
- Manual Assignment
- Entering an IP address
- Choosing an IP address
- Using DHCP
- DHCP-provided address
- DHCP with manual addresses
- Zeroconf Selection of IP Address
- Link-local range
- Choosing a link-local address
- Claiming a Link-Local IP Address
- Probing for Address Availability
- Address Resolution Protocol
- How to probe
- Results of probing
- When to probe
- Announcing
- Announcing your address
- Defending Your Address
- Late Conflicts and Misbehaving Peers
- Summary
- 3. Names Without DNS
- A Brief Tour of DNS
- The Namespace
- Administration of DNS
- Resolving Names
- The Zeroconf Namespace
- The local Domain
- Choosing a Name
- Multicast DNS
- The mDNS Multicast Address
- Multicast DNS Queries
- Reducing traffic
- Claiming Your Local Name
- Probing to Check for Uniqueness
- Announcing
- The Structure of the Multicast DNS Message
- Summary
- 4. Browsing for Services
- Zero Configuration Operation
- Finding Services, Not Devices
- Knowing the Protocol
- Building on DNS
- Browsing for Services
- Service Instance Names
- What You See Is What You Get
- Flagship Service Types
- Subtypes of Service Types
- Late Binding
- DNS-SD TXT Records
- Format for DNS TXT Records
- Content of DNS-SD TXT Records
- Interpreting DNS-SD TXT Records
- Summary
- 5. Service Discovery Beyond the Local Link
- Domain Enumeration
- Advertising Static Services
- Wide-Area Preference Settings
- Hostname
- Registration
- Browsing
- Dynamic DNS Updates
- Dynamic DNS Update Leases (DNS-UL)
- Changes to the message format
- Refresh messages
- DNS Long-Lived Queries (DNS-LLQ)
- LLQ Message Format
- LLQ Setup Four-way Handshake
- Step 1: initial request
- Step 2: challenge
- Step 3: challenge response
- Step 4: ACK and answers
- Refreshes and Expiration
- Event Responses
- Identifying Whether the Local DNS Cache Supports LLQ
- NAT Port Mapping Protocol (NAT-PMP)
- Network Address Translation
- Obtaining the Public Address
- Creating and Destroying a Mapping
- Summary
- 6. Getting Started with Bonjour/Zeroconf
- Working with Bonjour/Zeroconf
- Installing Bonjour
- Macintosh
- Windows
- Linux/Unix
- Other platforms
- Understanding Zeroconf
- The Command-Line Tool
- Browsing
- Registering (Advertising) a Service
- Resolving
- Proxying
- Monitoring
- Summary
- 7. Using the C APIs
- Asynchronous Programming Model
- Event Handling with a select() Loop
- Event Callbacks
- Accessing the Underlying Unix Domain Sockets
- DNSServiceRefSockFD()
- DNSServiceProcessResult()
- DNS Service Discovery error codes
- DNSServiceRefDeallocate()
- Using the DNSServiceDiscovery APIs
- Browsing for Services
- DNSServiceBrowse()
- DNSServiceBrowseReply()
- DNSServiceDiscovery flags
- Browsing example
- Resolving a Service
- DNSServiceResolve
- DNSServiceResolveReply
- Resolution example
- Registering a Service
- DNSServiceRegister
- DNSServiceRegisterReply
- DNSServiceAddRecord
- DNSServiceUpdateRecord
- DNSServiceRemoveRecord
- Registration example
- Enumerating Domains
- DNSServiceEnumerateDomain
- DNSServiceDomainEnumReply
- Enumeration example
- Other Operations
- Event Handling with Cocoa RunLoop or Core Foundation CFRunLoop
- Event Handling with Microsoft Windows GetMessage() Message Loop
- Event Handling with Microsoft Windows MFC
- Event Handling with Independent Threads
- Summary
- 8. Using the Java APIs
- Understanding the APIs
- The DNSSD Class
- The Listener Interfaces
- BaseListener
- DNSSDException
- Using the APIs
- Registering a Service
- The DNSSD.register() call
- The RegisterListener
- Complete TestRegister program listing
- Testing the registration program
- Browsing for Services
- Resolving a Service
- Registering a Service with DNS TXT Record Attributes
- Adding, Updating, and Removing Additional Records
- An Extended Example: Tic-Tac-Toe
- 9. Using the CFNetwork and Cocoa APIs
- Using the CFNetServices API
- Advertising a Service in CFNetServices
- Browsing in CFNetServices
- Resolving in CFNetServices
- Using the NSNetServices API in Cocoa
- Advertising a Service in Cocoa
- Browsing in Cocoa
- Resolving in Cocoa
- A Cocoa Bonjour Extended Example
- Creating the GUI
- The Generated MoodBeacon and MoodBrowser Header Files
- Advertising the Service with MoodBeacon
- Finding and Using the Service with MoodBrowser
- 10. Ruby, Python, and Other Languages
- Ruby
- Registering a Service in Ruby
- Browsing for Services in Ruby
- Resolving a Service in Ruby
- Python
- Registering a Service in Python
- Browsing for Services in Python
- Resolving a Service in Python
- Embedded Responders
- Index
- About the Authors
- Colophon
- SPECIAL OFFER: Upgrade this ebook with O'Reilly
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.