Add support for designated multicast replicators to Multicaster::send().
This commit is contained in:
parent
f03fd57997
commit
d3d58ba8a7
4 changed files with 58 additions and 4 deletions
|
@ -322,6 +322,16 @@ public:
|
|||
return r;
|
||||
}
|
||||
|
||||
inline unsigned int multicastReplicators(Address mr[ZT_MAX_NETWORK_SPECIALISTS]) const
|
||||
{
|
||||
unsigned int c = 0;
|
||||
for(unsigned int i=0;i<specialistCount;++i) {
|
||||
if ((specialists[i] & ZT_NETWORKCONFIG_SPECIALIST_TYPE_MULTICAST_REPLICATOR) != 0)
|
||||
mr[c++] = specialists[i];
|
||||
}
|
||||
return c;
|
||||
}
|
||||
|
||||
inline std::vector<Address> alwaysContactAddresses() const
|
||||
{
|
||||
std::vector<Address> r;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue