Closed hridaydutta123 closed 8 years ago
@archie94 As i had mentioned you need to use broadcast packets. So what you need to do is create two threads. one for broadcasting udp packets in the broadcast ip (192.168.43.255) and another thread for listening them and listing the peers
Thanks ! I checked and there is a bug in connection establishment between devices. Will use UDP broadcast packets
assume two devices are already connected over wifi. Now the goal is to autometically detect the presence of the devices on the same network. Thats why UDP broadcasts are required.
Example:
PhoneA and PhoneB are connected to the same wifi
So target is: in phoneA print: ip address of PhoneB
and in PhoneA print: ip address of PhoneA
Having problem in receiving the broadcast packet in client side. Definitely the problem lies in joining the socket to the broadcast group. Need a little help.
Let me know when you are free. Will meet in department On Mar 12, 2016 4:26 AM, "Arka Prava Basu" notifications@github.com wrote:
Having problem in receiving the broadcast packet in client side. Definitely the problem lies in joining the socket to the broadcast group. Need a little help.
— Reply to this email directly or view it on GitHub https://github.com/archie94/PSync/issues/1#issuecomment-195593536.
@archie94 close this issue.
ekta pull request patheachi ota merge kore neo
Ususal steps of collaborative development in github:
git pull github maser
here "github" is the remote name. it may be origin or whatever you named it.
@ghoshbishakh Writing the file manager with reference to your python script. Not clear on two things
@archie94 actually that calculates the checksum of the file content and assigns it as fileID. Leave that part or hardcode something. Push whatever you have done till now.
@ghoshbishakh Pushed works up to today. I cannot work for the next two days. If you can you may modify whatever you feel like. Will resume from Saturday.
@archie94 thanks! ill take a look tomorrow
Use UDP Broadcast packets assuming there is already wifi connection established between the devices. Connection establishment is managed by DisarmConnect App