I have looked into P2P API provided by android. I know all the steps to discover peers and connect to them. My question is how does other device know that a connection has been created by some device to my device? bcz after connection we use sockets to transfer data. for sockets to work, client must know the ip and port of server. does this asdress needs to be entered manually on client side? My app's flow should be like device A discovers devices and one or more devices may have my app installed on them. A selects one device and send connection request. Other device can accepts/rejects the request. If accepted then both devices should be connected through sockets one as server and other of course client. I hope I explained well what I want to achieve.
0 comments:
Post a Comment