RoboidControl-cpp/Windows/WindowsParticipant.h
2025-04-08 09:49:52 +02:00

23 lines
493 B
C++

#pragma once
#include "Participants/ParticipantUDP.h"
namespace RoboidControl {
namespace Windows {
class ParticipantUDP : public RoboidControl::ParticipantUDP {
public:
void Setup(int localPort, const char* remoteIpAddress, int remotePort);
void Receive();
bool Send(Participant* remoteParticipant, int bufferSize);
bool Publish(IMessage* msg);
protected:
#if defined(_WIN32) || defined(_WIN64)
SOCKET sock;
#endif
};
} // namespace Windows
} // namespace RoboidControl