Fundamentals of "Android app development Technology: Network Communications" Network Service discovery

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.