Jump to content

Detecting slave connection/disconnection


photo

Recommended Posts

Hello,

- Is there a callback for when a slave has connected/disconnected?

- How can we get the "name" the slave was set up with (through the command line -sync_slave_name)?

Thanks!

Link to comment

Hello Stephane,

You're working with 2.11, right?

In the latest version all of these features are available.

15 hours ago, Amerio.Stephane said:

- Is there a callback for when a slave has connected/disconnected?

Master has SLAVE_CONNECTED, SLAVE_DISCONNECTED
And slave: MASTER_CONNECTED, MASTER_DISCONNECTED

Here you'll find the detailed description: https://developer.unigine.com/en/docs/2.11/api/library/plugins/syncker/class.masterinterface?rlang=cpp

17 hours ago, Amerio.Stephane said:

- How can we get the "name" the slave was set up with (through the command line -sync_slave_name)?

Name was removed and changed to an ID. You can use getSlaveID or getSlaveAddress and getSlavePort.

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment

Actually, we're still on 2.10 (and looking into the effort of moving to 2.11).

The callbacks you mentioned exist only starting from 2.11, so I guess this is one more reason to make the shift :)

About sync_slave_name: I guess we should use sync_view instead, but I'm wondering if the behavior would be the same, as we are not using any wall/projector/multiscreen config file, so the name we use are simply "made up". Would it still be ok?

The objective: each slave should announce at connection time the name of the player it wants to be attached to, through the command line (this player can later be changed through a custom menu).

Link to comment
  • 2 weeks later...
×
×
  • Create New...