adroitandroid / Near

A P2P library for Android for discovery on local networks using UDP and transfer in general using TCP sockets
https://goo.gl/kioAiQ
MIT License
350 stars 92 forks source link

Pure Java Equivalent #11

Closed DatL4g closed 4 years ago

DatL4g commented 4 years ago

I need a pure Java equivalent for Desktop applications But I'm running into some problems implementing this (especially implementing the server)

It would be very cool if you took care of it and created a repository for it. I would of course also help as much as possible if it is difficult in terms of time.

DatL4g commented 4 years ago

@adroitandroid I got the discovery working

However the devices see each other only for a millisecond (i see it in console output) I think it has something to do with the threads I'm running but I'm not sure

Could you please contact me datlag.developer@gmail.com I would share the code with you and you could maybe take a look

DatL4g commented 4 years ago

Sorry that I might be a bit annoying but I have already managed it

So don't need your help for now

adroitandroid commented 4 years ago

seeing these only now, sorry. Really cool that you could make it work! lemme know if you need any help, if there's a github repo, I can watch for sure

DatL4g commented 4 years ago

Hey, I have a github repo with a project HotDrop-Desktop And I have a problem with discovery. It works but I can only find one device

e.g. 3 devices: 2 Smartphones and 1 PC The smartphones can detect each other and the PC However the PC can only find 1 Smartphone (sometimes Smartphone 1 and sometimes Smartphone 2)

Maybe you can take a look The code is located under src/main/kotlin/p2p/cu2