nsnetservicebrowser

Disconnecting with server immediately after connecting

梦想的初衷 提交于 2019-11-29 22:31:47
问题 I have written a Singleton Class using GCDAsyncsocket Library to establish connection with any other device having same service using Bonjour. On one device I am using its Method " startPublishing " to make it a Host(Server), from the Application on another Device(Client) I am calling " StartBrowsing " to find out the available Devices in Network. When user selects any of service in that Network I am calling method " initConnectionWithService ", that initiate Connection flow by resolving