Roboid Control for C++
Loading...
Searching...
No Matches
ParticipantMsg.h
1#pragma once
2
3#include "Messages.h"
4
5namespace Passer {
6namespace RoboidControl {
7
11class ParticipantMsg : public IMessage {
12 public:
14 static const unsigned char id = 0xA0;
16 static const unsigned char length = 2;
18 unsigned char networkId;
19
23
25 ParticipantMsg(const char* buffer);
27 virtual ~ParticipantMsg();
28
32 virtual unsigned char Serialize(char* buffer) override;
33};
34
35} // namespace RoboidControl
36} // namespace Passer
Root structure for all communcation messages.
Definition Messages.h:12
A participant messages notifies other participants of its presence When received by another participa...
Definition ParticipantMsg.h:11
static const unsigned char length
The length of the message.
Definition ParticipantMsg.h:16
virtual unsigned char Serialize(char *buffer) override
Serialize the message into a byte array.
Definition ParticipantMsg.cpp:11
virtual ~ParticipantMsg()
Destructor for the message.
Definition ParticipantMsg.cpp:9
unsigned char networkId
The network ID known by the participant.
Definition ParticipantMsg.h:18