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
349 stars 92 forks source link

Upgrade minSdkVersion& add the possibility to have mutiple instance of NearConnection #3

Closed AndroFlo closed 6 years ago

AndroFlo commented 6 years ago

Upgrade the minSdkversion to 26 Add the possibility to set a port to an NearConnection to have multiple instance running #2 set minsdkversion to 19 (tested on multiple devices)

adroitandroid commented 6 years ago

Thanks! I'll take a look within 48 and merge if all is well

On 09-Oct-2017 7:18 PM, "Audigué Florian" notifications@github.com wrote:

Upgrade the minSdkversion to 26 Add the possibility to set a port to an NearConnection to have multiple instance running set minsdkversion to 19 (tested on multiple devices)

You can view, comment on, or merge this pull request online at:

https://github.com/adroitandroid/Near/pull/3 Commit Summary

  • update gradle version
  • add the possibility to have multiple NearConnection ( manually set a port )
  • add a sample to setPort in ChatActivity.java
  • upgrade compileSdkVersion to 26 and buildToolsversionTo 26.0.1
  • downgrade minSdkVersion to 19 ( tested)

File Changes

Patch Links:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/adroitandroid/Near/pull/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AIDhjtp0HOanKMeorGBABSLil5Y6yR1kks5sqiRHgaJpZM4Pyg_A .

AndroFlo commented 6 years ago

Finally the have a problem of cohabitation with two instances of near connect, i work on it

adroitandroid commented 6 years ago

What issue did you face? I'll see if I can help over the weekend for this one 👍

On 13-Oct-2017 2:25 PM, "Audigué Florian" notifications@github.com wrote:

Finally the have a problem of cohabitation with two instances of near connect, i work on it

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/adroitandroid/Near/pull/3#issuecomment-336392636, or mute the thread https://github.com/notifications/unsubscribe-auth/AIDhjqSy6dY--2ykPANSin_w-AgVXSqjks5sryWSgaJpZM4Pyg_A .

AndroFlo commented 6 years ago

In my application I have a master phone and two slave phones. The master uses a service where it is always discoverable and the other two seek the master when one of the slave finds the master it starts a communication service where it is connected only to the master. The master also starts the communication service but the second slave can be added so he has 2 peers. The problem is that when I'm in slave mode and I close the Discovery service and my NearConnect object I have socket closed or connection denied