iOS and OS X Network Programming Cookbook
暫譯: iOS 與 OS X 網路程式設計食譜
Jon Hoffman
- 出版商: Packt Publishing
- 出版日期: 2014-01-25
- 售價: $2,220
- 貴賓價: 9.5 折 $2,109
- 語言: 英文
- 頁數: 300
- 裝訂: Paperback
- ISBN: 1849698082
- ISBN-13: 9781849698085
-
相關分類:
Apple Developer
海外代購書籍(需單獨結帳)
商品描述
Over 50 recipes to develop network applications in both the iOS and OS X environment
Overview
- Use several Apple and third-party APIs to develop both server and client networked applications
- Shows you how to integrate all of the third-party libraries and APIs with your applications
- Includes sample projects for both iOS and OS X environments
In Detail
Darwin, which forms the core set of components for OS X and iOS, is compatible with the Single UNIX Specification Version 3 and POSIX UNIX. Therefore OS X and iOS are UNIX operating systems. While there are numerous books and articles written to teach network development in a UNIX environment there is surprisingly little dedicated to teaching network development specifically in an Apple environment. In this book we will be covering the standard UNIX networking stack with BSD Sockets as well as Apple's frameworks like CFNetworking and Bonjour.
"iOS and OS X Network Programming Cookbook" is an enthralling code-focused book on developing client and server applications for the iOS and OS X environments. You will learn how to integrate a number of Unix (BSD Sockets), Apple specific (CFNetworking, NSMutableURLRequest, Bonjour) and third party APIs (AFNetworking, MKNetworking) with your own apps.
"iOS and OS X Network Programming Cookbook" begins by showing you how to build both client and server applications using the BSD Socket Library as well as Apple's CFNetworking library. The sample code includes samples for both iOS and OS X.
It then covers how to add Bonjour to publish, find, and connect to services. This can be used to create peer-to-peer applications over local networks. Finally it shows how to integrate third-party libraries like Libnet, LibPCAP, AFNetworking, and MKNetworking with the reader's apps.
A lot of developers do not realize that iOS is a full UNIX-based operating system that contains a full set of networking APIs. These APIs can be used to create both client- and server-based applications in the iOS environment as well as OS X. Using the Apple's Bonjour library you will learn how to publish, find, and connect the services together without hardcoding the connection information. There are also a number of third-party APIs that can be used to easily connect iOS and OS X applications to web-based services. Finally this book will cover several low level libraries like LibNET and LibPCAP on the OS X environment.
"iOS and OS X Network Programming Cookbook" will cover several UNIX, Apple, and third-party libraries and APIs. The book will show the user how to integrate all of these libraries and APIs with their applications.
What you will learn from this book
- Create client- and server-based applications with the BSD socket API
- Create client- and server-based applications with CFNetworking
- Publish, find, and connect client applications with servers using Apple's Bonjour library
- Use the AFNetworking library to connect to web-based services
- Connect to web-based services using the MKNetworking library
- Explore the LibNET packet construction library in OS X
- Get to grips with the LibPCAP packet capture library in OS X
- Discover Apple's high-level APIs to connect to devices via Bluetooth
- Connect two devices with a Bluetooth connection
商品描述(中文翻譯)
超過 50 個配方,用於在 iOS 和 OS X 環境中開發網路應用程式
概述
- 使用多個 Apple 和第三方 API 開發伺服器和客戶端網路應用程式
- 教您如何將所有第三方函式庫和 API 整合到您的應用程式中
- 包含 iOS 和 OS X 環境的範例專案
詳細內容
Darwin 是 OS X 和 iOS 的核心組件,與 Single UNIX Specification Version 3 和 POSIX UNIX 相容。因此,OS X 和 iOS 是 UNIX 作業系統。雖然有許多書籍和文章專門教授在 UNIX 環境中的網路開發,但專門針對 Apple 環境的網路開發教學卻意外地少。在本書中,我們將涵蓋標準的 UNIX 網路堆疊,使用 BSD Sockets 以及 Apple 的框架,如 CFNetworking 和 Bonjour。
《iOS 和 OS X 網路程式設計食譜》是一本引人入勝的以程式碼為重點的書籍,專注於為 iOS 和 OS X 環境開發客戶端和伺服器應用程式。您將學習如何將多個 Unix(BSD Sockets)、Apple 特定(CFNetworking、NSMutableURLRequest、Bonjour)和第三方 API(AFNetworking、MKNetworking)整合到自己的應用程式中。
《iOS 和 OS X 網路程式設計食譜》首先展示如何使用 BSD Socket 函式庫和 Apple 的 CFNetworking 函式庫構建客戶端和伺服器應用程式。範例程式碼包括 iOS 和 OS X 的範例。
接著,它涵蓋了如何添加 Bonjour 以發布、查找和連接服務。這可以用來在本地網路上創建點對點應用程式。最後,它展示了如何將第三方函式庫,如 Libnet、LibPCAP、AFNetworking 和 MKNetworking,與讀者的應用程式整合。
許多開發人員並未意識到 iOS 是一個完整的基於 UNIX 的作業系統,擁有完整的網路 API。這些 API 可用於在 iOS 環境以及 OS X 中創建客戶端和伺服器應用程式。使用 Apple 的 Bonjour 函式庫,您將學習如何發布、查找和連接服務,而無需硬編碼連接資訊。還有許多第三方 API 可用於輕鬆將 iOS 和 OS X 應用程式連接到基於網路的服務。最後,本書將涵蓋 OS X 環境中的幾個低階函式庫,如 LibNET 和 LibPCAP。
《iOS 和 OS X 網路程式設計食譜》將涵蓋多個 UNIX、Apple 和第三方函式庫及 API。本書將向用戶展示如何將所有這些函式庫和 API 與他們的應用程式整合。
您將從本書中學到的內容
- 使用 BSD socket API 創建客戶端和伺服器應用程式
- 使用 CFNetworking 創建客戶端和伺服器應用程式
- 使用 Apple 的 Bonjour 函式庫發布、查找和連接客戶端應用程式與伺服器
- 使用 AFNetworking 函式庫連接到基於網路的服務
- 使用 MKNetworking 函式庫連接到基於網路的服務
- 探索 OS X 中的 LibNET 封包構建函式庫
- 熟悉 OS X 中的 LibPCAP 封包捕獲函式庫
- 發現 Apple 的高階 API 以通過藍牙連接設備
- 使用藍牙連接兩個設備