|
| Hive (hiveNodeCallback &_onNodeFound, hiveNodeCallback &_onLocalNodeFound, hiveNodeCallback &_onNodeRemoved) |
|
| Hive (const Hive &)=delete |
|
Hive & | operator= (const Hive &)=delete |
|
void | Configure (std::string _name, bool _useLoopback=true, int _beaconPort=(int) Hermes::Protocol::DefaultPorts::HivePort, int _broadcastIntervalInSeconds=1, int _deadNodeTimeoutInSeconds=10) |
|
void | Join () |
|
void | Stop () |
|
|
static std::unique_ptr< Hive > | FindCoordinator (std::string _name, int _beaconPort, hiveNodeCallback &_onNodeFound, hiveNodeCallback &_onLocalNodeFound, hiveNodeCallback &_onNodeRemoved, bool _useLoopback) |
|
static std::unique_ptr< Hive > | FindLocalCoordinator (std::string _name, int _beaconPort, hiveNodeCallback &_onNodeFound, hiveNodeCallback &_onLocalNodeFound, hiveNodeCallback &_onNodeRemoved) |
|
static std::unique_ptr< Hive > | FindNetworkCoordinator (std::string _name, int _beaconPort, hiveNodeCallback &_onNodeFound, hiveNodeCallback &_onLocalNodeFound, hiveNodeCallback &_onNodeRemoved) |
|
◆ FindCoordinator()
std::unique_ptr< Hive > HermesSDK::Hive::FindCoordinator |
( |
std::string |
_name, |
|
|
int |
_beaconPort, |
|
|
hiveNodeCallback & |
_onAnyNodeFound, |
|
|
hiveNodeCallback & |
_onLocalNodeFound, |
|
|
hiveNodeCallback & |
_onNodeRemoved, |
|
|
bool |
_useLoopback |
|
) |
| |
|
static |
Finds a Hermes instance. Searches the local network for running instances of Hermes.
- Parameters
-
_name | Name to give the returned Hive when it is created |
_beaconPort | UDP port to search for broadcasting Hermes instances on. Hermes is internally defaulted to 9999 |
_onAnyNodeFound | Callback function, called when a Hermes instance is found on the local network |
_onLocalNodeFound | Callback function, called when a Hermes instance is found on the local PC |
_onNodeRemoved | Callback function, called when a node goes away |
- Returns
- A Hive instance, whose coordinator can be used for the Caretaker Connect() function
◆ FindLocalCoordinator()
std::unique_ptr< Hive > HermesSDK::Hive::FindLocalCoordinator |
( |
std::string |
_name, |
|
|
int |
_beaconPort, |
|
|
hiveNodeCallback & |
_onAnyNodeFound, |
|
|
hiveNodeCallback & |
_onLocalNodeFound, |
|
|
hiveNodeCallback & |
_onNodeRemoved |
|
) |
| |
|
static |
Finds a Hermes instance. Searches the local PC for running instances of Hermes.
- Parameters
-
_name | Name to give the returned Hive when it is created |
_beaconPort | UDP port to search for broadcasting Hermes instances on. Hermes is internally defaulted to 9999 |
_onAnyNodeFound | Callback function, called when a Hermes instance is found on the local network |
_onLocalNodeFound | Callback function, called when a Hermes instance is found on the local PC |
_onNodeRemoved | Callback function, called when a node goes away |
- Returns
- A Hive instance, whose coordinator can be used for the Caretaker Connect() function
◆ FindNetworkCoordinator()
std::unique_ptr< Hive > HermesSDK::Hive::FindNetworkCoordinator |
( |
std::string |
_name, |
|
|
int |
_beaconPort, |
|
|
hiveNodeCallback & |
_onAnyNodeFound, |
|
|
hiveNodeCallback & |
_onLocalNodeFound, |
|
|
hiveNodeCallback & |
_onNodeRemoved |
|
) |
| |
|
static |
Finds a network Hermes instance. Searches the network for running instances of Hermes.
- Parameters
-
_name | Name to give the returned Hive when it is created |
_beaconPort | UDP port to search for broadcasting Hermes instances on. Hermes is internally defaulted to 9999 |
_onAnyNodeFound | Callback function, called when a Hermes instance is found on the local network |
_onLocalNodeFound | Callback function, called when a Hermes instance is found on the local PC |
_onNodeRemoved | Callback function, called when a node goes away |
- Returns
- A Hive instance, whose coordinator can be used for the Caretaker Connect() function
The documentation for this class was generated from the following files: