ignition/transport/DiscoveryPrivate.hh
More...
#include <DiscoveryPrivate.hh>
ignition::transport::DiscoveryPrivate::DiscoveryPrivate |
( |
| ) |
|
|
default |
virtual ignition::transport::DiscoveryPrivate::~DiscoveryPrivate |
( |
| ) |
|
|
virtualdefault |
std::map<std::string, Timestamp> ignition::transport::DiscoveryPrivate::activity |
Activity information.
Every time there is a message from a remote node, its activity information is updated. If we do not hear from a node in a while, its entries in 'info' will be invalided. The key is the process uuid.
unsigned int ignition::transport::DiscoveryPrivate::activityInterval |
Activity interval value (ms.).
- See also
- ActivityInterval.
-
SetActivityInterval.
unsigned int ignition::transport::DiscoveryPrivate::advertiseInterval |
Advertise interval value (ms.).
- See also
- AdvertiseInterval.
-
SetAdvertiseInterval.
Callback executed when new topics are discovered.
Callback executed when new services are discovered.
const unsigned int ignition::transport::DiscoveryPrivate::DefActivityInterval = 100 |
|
static |
Default activity interval value (ms.).
- See also
- ActivityInterval.
-
SetActivityInterval.
const unsigned int ignition::transport::DiscoveryPrivate::DefAdvertiseInterval = 1000 |
|
static |
Default advertise interval value (ms.).
- See also
- AdvertiseInterval.
-
SetAdvertiseInterval.
const unsigned int ignition::transport::DiscoveryPrivate::DefHeartbeatInterval = 1000 |
|
static |
Default heartbeat interval value (ms.).
- See also
- HeartbeatInterval.
-
SetHeartbeatInterval.
const unsigned int ignition::transport::DiscoveryPrivate::DefSilenceInterval = 3000 |
|
static |
Default silence interval value (ms.).
- See also
- MaxSilenceInterval.
-
SetMaxSilenceInterval.
Callback executed when new topics are invalid.
Callback executed when a service is no longer available.
const int ignition::transport::DiscoveryPrivate::DiscoveryPort = 11319 |
|
static |
Port used to broadcast the discovery messages.
bool ignition::transport::DiscoveryPrivate::enabled |
When true, the service is enabled.
bool ignition::transport::DiscoveryPrivate::exit |
When true, the service threads will finish.
std::recursive_mutex ignition::transport::DiscoveryPrivate::exitMutex |
Mutex to guarantee exclusive access to the exit variable.
unsigned int ignition::transport::DiscoveryPrivate::heartbeatInterval |
Heartbeat interval value (ms.).
- See also
- HeartbeatInterval.
-
SetHeartbeatInterval.
std::string ignition::transport::DiscoveryPrivate::hostAddr |
std::vector<std::string> ignition::transport::DiscoveryPrivate::hostInterfaces |
List of host network interfaces.
Message addressing information.
Service addressing information.
bool ignition::transport::DiscoveryPrivate::initialized |
Once the discovery starts, it can take up to HeartbeatInterval milliseconds to discover the existing nodes on the network.
This variable is 'false' during the first HeartbeatInterval period and is set to 'true' after that.
std::condition_variable_any ignition::transport::DiscoveryPrivate::initializedCv |
Used to block/unblock until the initialization phase finishes.
const int ignition::transport::DiscoveryPrivate::MaxRcvStr = 65536 |
|
static |
Longest string to receive.
sockaddr_in ignition::transport::DiscoveryPrivate::mcastAddr |
Internet socket address for sending to the multicast group.
const std::string ignition::transport::DiscoveryPrivate::MulticastGroup = "224.0.0.7" |
IP Address used for multicast.
std::recursive_mutex ignition::transport::DiscoveryPrivate::mutex |
Mutex to guarantee exclusive access between the threads.
unsigned int ignition::transport::DiscoveryPrivate::numHeartbeatsUninitialized = 0 |
Number of heartbeats sent while discovery is uninitialized.
std::string ignition::transport::DiscoveryPrivate::pUuid |
unsigned int ignition::transport::DiscoveryPrivate::silenceInterval |
Silence interval value (ms.).
- See also
- MaxSilenceInterval.
-
SetMaxSilenceInterval.
std::vector<int> ignition::transport::DiscoveryPrivate::sockets |
UDP socket used for sending/receiving discovery messages.
std::thread ignition::transport::DiscoveryPrivate::threadActivity |
Thread in charge of update the activity.
std::thread ignition::transport::DiscoveryPrivate::threadHeartbeat |
Thread in charge of sending heartbeats.
std::thread ignition::transport::DiscoveryPrivate::threadReception |
Thread in charge of receiving and handling incoming messages.
const int ignition::transport::DiscoveryPrivate::Timeout = 250 |
|
static |
Timeout used for receiving messages (ms.).
bool ignition::transport::DiscoveryPrivate::verbose |
Print discovery information to stdout.
const uint8_t ignition::transport::DiscoveryPrivate::Version = 3 |
|
static |
Wire protocol version.
Bump up the version number if you modify the wire protocol (for discovery or message/service exchange).
The documentation for this class was generated from the following file: