1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00
tracy/server/TracyProtocolServer.hpp
Grégoire Roussel 4f769258b4 format 2
2024-08-09 01:20:40 +02:00

18 lines
518 B
C++

// server-side functions supporting the protocol
#ifndef __TRACYPROTOCOLSERVER_HPP__
#define __TRACYPROTOCOLSERVER_HPP__
#include "TracyProtocol.hpp"
#include "TracySocket.hpp"
#include <optional>
namespace tracy
{
// create the latest version of broadcast message, migrating older versions if possible
std::optional<tracy::BroadcastMessage> ParseBroadcastMessage( const char* msg, size_t msgLen );
// internal unique ID for a client
uint64_t ClientUniqueID( tracy::IpAddress const& addr, uint16_t port );
}
#endif