![]() |
Roboid Control for C++ 0.4
|
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) | |
| 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. | |
| RoboidControl::ParticipantMsg::ParticipantMsg | ( | char | networkId | ) |
Create a new message for sending.
| networkId | The network ID known by the participant |
| RoboidControl::ParticipantMsg::ParticipantMsg | ( | const char * | buffer | ) |
|
overridevirtual |
Serialize the message into a byte array.
| buffer | The buffer to serialize into |
Reimplemented from RoboidControl::IMessage.