![]() |
Roboid Control for C++
|
A message communicating the network ID for that participant.
#include <NetworkIdMsg.h>
Public Member Functions | |
NetworkIdMsg (unsigned char networkId) | |
Create a new message for sending. | |
NetworkIdMsg (const char *buffer) | |
Create a message for receiving. | |
virtual | ~NetworkIdMsg () |
Destructor for the message. | |
virtual unsigned char | Serialize (char *buffer) override |
Serialize the message into a byte array for sending. | |
Public Attributes | |
unsigned char | networkId |
The network ID for the participant. | |
Static Public Attributes | |
static const unsigned char | id = 0xA1 |
The message ID. | |
static const unsigned char | length = 2 |
The length of the message. | |
Passer::RoboidControl::NetworkIdMsg::NetworkIdMsg | ( | unsigned char | networkId | ) |
Create a new message for sending.
networkId | The network ID for the participant |
Passer::RoboidControl::NetworkIdMsg::NetworkIdMsg | ( | const char * | buffer | ) |
Create a message for receiving.
buffer | The byte array to parse |
|
overridevirtual |
Serialize the message into a byte array for sending.
buffer | The buffer to serilize into |
Reimplemented from Passer::RoboidControl::IMessage.