A few more revisions to new multicast verbs.

This commit is contained in:
Adam Ierymenko 2014-09-26 14:18:25 -07:00
parent 2d41055bdc
commit ed0ba49502
6 changed files with 116 additions and 52 deletions

View file

@ -46,6 +46,7 @@
namespace ZeroTier {
class RuntimeEnvironment;
class CertificateOfMembership;
/**
* Database of known multicast peers within a network
@ -100,6 +101,7 @@ public:
*
* @param RR Runtime environment
* @param nwid Network ID
* @param com Certificate of membership to include or NULL for none
* @param limit Multicast limit
* @param now Current time
* @param mg Multicast group
@ -108,7 +110,17 @@ public:
* @param data Packet data
* @param len Length of packet data
*/
void send(const RuntimeEnvironment *RR,uint64_t nwid,unsigned int limit,uint64_t now,const MulticastGroup &mg,const MAC &src,unsigned int etherType,const void *data,unsigned int len);
void send(
const RuntimeEnvironment *RR,
uint64_t nwid,
const CertificateOfMembership *com,
unsigned int limit,
uint64_t now,
const MulticastGroup &mg,
const MAC &src,
unsigned int etherType,
const void *data,
unsigned int len);
/**
* Clean up and resort database