1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Send listen port in broadcast message.

This commit is contained in:
Bartosz Taudul
2020-03-08 14:37:59 +01:00
parent 14c896573d
commit 127224acc6
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -10,7 +10,7 @@ namespace tracy
constexpr unsigned Lz4CompressBound( unsigned isize ) { return isize + ( isize / 255 ) + 16; }
enum : uint32_t { ProtocolVersion = 28 };
enum : uint32_t { BroadcastVersion = 0 };
enum : uint32_t { BroadcastVersion = 1 };
using lz4sz_t = uint32_t;
@@ -92,6 +92,7 @@ struct BroadcastMessage
{
uint32_t broadcastVersion;
uint32_t protocolVersion;
uint32_t listenPort;
uint32_t activeTime; // in seconds
char programName[WelcomeMessageProgramNameSize];
};