RoboidControl-cpp/SiteServer.h
2025-01-03 10:35:51 +01:00

24 lines
574 B
C++

#pragma once
#include "Participant.h"
namespace Passer {
namespace Control {
/// @brief A participant is device which can communicate with other participants
class SiteServer : public Participant {
public:
SiteServer(int port = 7681);
virtual void Update(unsigned long currentTimeMs) override;
protected:
unsigned long nextPublishMe = 0;
virtual void Process(Participant *sender, ClientMsg *msg) override;
virtual void Process(Participant *sender, NetworkIdMsg *msg) override;
};
} // namespace Control
} // namespace Passer
using namespace Passer::Control;