Bonjour service presentation

8
Using Bonjour service to communicate between iDevices 張張張 <[email protected]> March 29, 2017 / NIU

Transcript of Bonjour service presentation

Page 1: Bonjour service presentation

Using Bonjour service to communicatebetween iDevices

張家銘 <[email protected]>March 29, 2017 / NIU

Page 2: Bonjour service presentation

What is Bonjour ?

在區域網路 (LAN)中,尋找服務的一個方法。 這項技術允許用户不用在任何設定下,建立一個網路連接。 目前用於Mac OS X和其他操作系统上尋找印表機和文件共享伺服器。 另外還可以用在 iTunes中共享音樂,在 iPhoto共享照片,在

iChat, Proteus, Adium, Fire, Skype和 Gizmo Project中尋找區域網路中的其他用户…

https://zh.wikipedia.org/wiki/Bonjour

Page 3: Bonjour service presentation

https://i.ytimg.com/vi/Uj5MWr3Lcoc/maxresdefault.jpg

Page 4: Bonjour service presentation

Bonjour for Developers蘋果官方對其所下的描述 Bonjour, also known as zero-configuration networking, enables

automatic discovery of devices and services on a local network using industry standard IP protocols.

Bonjour makes it easy to discover, publish, and resolve network services with a sophisticated, easy-to-use programming interface that is accessible from Cocoa, Ruby, Python, and other languages.

Bonjour 能夠使裝置或是服務在同一個區域網路內,透過 IP 協定標準自動地被發現和找到。 他可以輕易地 discover( 尋找 ) 、 publish( 發布 ) ,還有用一個精密和易用的程式介面來處理網路服務,並且適用於 Cocoa, Ruby, Python ,還有其他程式語言。 https://developer.apple.com/bonjour/

Page 5: Bonjour service presentation

More applicationSimplify Networking with Bonjour (WWDC 2012) (link)

Page 6: Bonjour service presentation

用到的概念技術: Delegate pattern programming conception (gitbook link)

NetService ( 其本身就是一個 bonjour service ) NetServiceBrowser ( 用來找 NetService )

https://hecticparents.files.wordpress.com/2013/08/character-raising-hand-in-a-crowd.jpg

Page 7: Bonjour service presentation

Demo timeYou can download this Demo File on the following web site :

https://www.dropbox.com/s/znohwcr67l24yia/bonjourDemo.zip?dl=0

Page 8: Bonjour service presentation

If you have any question, please do not hesitate to contact [email protected]

Thanks for listening