mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-29 16:54:35 +00:00
18 lines
514 B
C++
18 lines
514 B
C++
// server-side functions supporting the protocol
|
|
#ifndef __TRACYPROTOCOLSERVER_HPP__
|
|
#define __TRACYPROTOCOLSERVER_HPP__
|
|
|
|
#include <optional>
|
|
#include "TracyProtocol.hpp"
|
|
#include "TracySocket.hpp"
|
|
|
|
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
|