简体   繁体   中英

Does network service discovery on android allows automatic connection after first connection (persistent connection)?

I want to have an automatic connection between any two devices after the first connection has happened. Does nsd on android provide such functionality? I have refered this link for nsd on android http://developer.android.com/training/connect-devices-wirelessly/nsd.html Also,we can discover multiple devices on the same network, but can we connect multiple devices on that same network?

You have to use socket for connection. Once the service is resolved, your application receives detailed service information including an IP address and port number. This is everything you need to create your own network connection to the service.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM