Guo Xiaoxing
Weibo: Guo Xiaoxing's Sina Weibo
Email:[email protected]
Blog: http://blog.csdn.net/allenwells
Github:https://github.com/allenwells
"Android App Development Technology: Network Communications" chapter list
Network Service Discovery (Discovery) is a technology that identifies and uses services available on other devices within a LAN, which provides good help in end-to-end applications such as file sharing, online gaming.
NSD is an apple-based Bonjour Service Discovery protocol that supports discovery and 0 configuration of remote services.
Bonjour is the network standard for Apple's open 0 configuration based on the multicast Domain Name Service (multicast DNS). For more information on Bonjour, please see the Bonjour official documentation.
The NSD service framework looks like this:
- Mdnsd:bonjour technology is widely used on the Apple platform, and later Apple promotes the technology through open source engineering Mdnsresponder, and for Bonjour technology, it will generate a daemon on the Windows platform Mdnsresponder , on the Android platform it will generate a MDNSD program, both Mdnsresponder and MDNSD are used to provide basic services, interacting through bonjour and the upper layer.
- The Mdnssdlistener object in Netd:netd, which communicates on the one hand through the socket and the upper object, on the other hand through the Bonjour API and MDNSD communication (socket-based cross-process communication).
- The System Process:system Process contains Nsdservice,nsdservice and Mdnssdlistener communication that is located in netd.
- App: This is our app that uses the Nsdmanager API to communicate through binder technology and Nsdservice.
Copyright NOTICE: When we seriously to do one thing, we can find the endless fun, colorful technology like the scenery on the road, while walking to appreciate.
Fundamentals of "Android app development Technology: Network Communications" Network Service discovery