3 #ifndef GRAIL_LIVE_DEBUGGER_SERVER
4 #define GRAIL_LIVE_DEBUGGER_SERVER
6 #include "../GrailCore/DebugUtilities/IDebugSnapshotReceiver.h"
7 #include "../GrailYamlConverters/YamlConvertersDebug.h"
10 #include "UDPServer.h"
26 const Poco::UInt16 PORT_NUMBER = 6000;
30 template <
typename SnapshotType>
31 void SendSnapshots(SnapshotType snapshot)
33 if(tcpServer.IsAnyConnected())
35 std::string serializedSnapshot = c4::yml::writeToString(snapshot);
36 tcpServer.SendToAll(serializedSnapshot);