jamoma / JamomaMax

Implementation of Jamoma for Cycling'74 Max:
http://www.jamoma.org
41 stars 9 forks source link

j.modular : how to be notified when connection is lost ? #975

Open avilleret opened 8 years ago

avilleret commented 8 years ago

how can I know that my distant application disappear ? and even more important when it reconnect ? so that I can automate reconnecting and namespace discovery

theod commented 8 years ago

I would say this is only possible if we introduce bonjour but I add @jcelerier to confirm. and if it is the case I remember that we discussed at Cnam that is a huge task. it have been possible to introduce bonjour into i-score thanks to Qt library toolkit but we can't base Jamoma on such library cause of licence issues.

avilleret commented 8 years ago

ha ok, actually I have a lots of network communication troubles but not only with JamomaMax, but I'll double check them before posting bug report :-D

jcelerier commented 8 years ago

I don't think that bonjour handles this, it does not maintain a connection at all. If I remember correctly, the Bonjour server is basically a field registered on the local DNS table of your router and for instance if the server goes offline abruptly there is a good chance that it will still be visible in the network a few minutes after its premature ending so it would not be very reliable.

I think that the only reliable way would be to have a regular ping to the server with a timeout - sadly there is no magic in networking :(

Jean-Michaël

On Wed, Dec 2, 2015 at 1:19 PM, Antoine Villeret notifications@github.com wrote:

ha ok, actually I have a lots of network communication troubles but not only with JamomaMax, but I'll double check them before posting bug report :-D

— Reply to this email directly or view it on GitHub https://github.com/jamoma/JamomaMax/issues/975#issuecomment-161275443.