![]() |
Roboid Control for C++
|
A participant messages notifies other participants of its presence When received by another participant, it can be followed by a NetworkIdMsg to announce that participant to this client such that it can join privately.
#include <ParticipantMsg.h>
Public Member Functions | |
ParticipantMsg (char networkId) | |
Create a new message for sending. | |
ParticipantMsg (const char *buffer) | |
Create a message for receiving. | |
virtual | ~ParticipantMsg () |
Destructor for the message. | |
virtual unsigned char | Serialize (char *buffer) override |
Serialize the message into a byte array. | |
Public Attributes | |
unsigned char | networkId |
The network ID known by the participant. | |
Static Public Attributes | |
static const unsigned char | id = 0xA0 |
The message ID. | |
static const unsigned char | length = 2 |
The length of the message. | |
Passer::RoboidControl::ParticipantMsg::ParticipantMsg | ( | char | networkId | ) |
Create a new message for sending.
networkId | The network ID known by the participant |
Passer::RoboidControl::ParticipantMsg::ParticipantMsg | ( | const char * | buffer | ) |
Create a message for receiving.
buffer | The byte array to parse |
|
overridevirtual |
Serialize the message into a byte array.
buffer | The buffer to serialize into |
Reimplemented from Passer::RoboidControl::IMessage.