3#include "LocalParticipant.h"
8#include <unordered_map>
11namespace RoboidControl {
21 template <
typename ThingClass>
22 void Register(
unsigned char thingType) {
23 thingMsgProcessors[thingType] = [](
Participant* participant,
25 unsigned char thingId) {
26 return new ThingClass(participant,
networkId, thingId);
32 unsigned long nextPublishMe = 0;
41 unsigned char thingId)>;
42 std::unordered_map<unsigned char, ThingConstructor> thingMsgProcessors;
A local participant is the local device which can communicate with other participants It manages all ...
Definition LocalParticipant.h:43
A participant is a device which manages things. It can communicate with other participant to synchron...
Definition Participant.h:14
int port
The port number for UDP communication with the participant. This is 0 for isolated participants.
Definition Participant.h:21
unsigned char networkId
The network Id to identify the participant.
Definition Participant.h:25
A participant messages notifies other participants of its presence When received by another participa...
Definition ParticipantMsg.h:10
A message communicating the network ID for that participant.
Definition SiteMsg.h:6
A participant is device which can communicate with other participants.
Definition SiteServer.h:14
A thing is the primitive building block.
Definition Thing.h:20
Message providing generic information about a Thing.
Definition ThingMsg.h:6