RoboidControl-cpp/Participant.h
2025-01-01 22:32:56 +01:00

30 lines
765 B
C++

#pragma once
#include "Messages.h"
namespace Passer {
namespace Control {
/// @brief A participant is device which can communicate with other participants
class Participant {
public:
unsigned char buffer[1024];
Participant(const char* ipAddress, int port);
virtual bool SendBuffer(unsigned char bufferSize);
virtual bool PublishBuffer(unsigned char bufferSize);
void ReceiveData(unsigned char bufferSize);
protected:
virtual void ProcessNetworkIdMsg(NetworkIdMsg msg);
virtual void ProcessInvestigateMsg(InvestigateMsg msg);
virtual void ProcessThingMsg(ThingMsg msg);
virtual void ProcessPoseMsg(PoseMsg msg);
virtual void ProcessCustomMsg(CustomMsg msg);
};
} // namespace Control
} // namespace Passer
using namespace Passer::Control;