Cleanup protocol/ comments
Build Linux Binaries / linux/amd64 (push) Has been cancelled
Build Linux Binaries / linux/arm64 (push) Has been cancelled

This commit is contained in:
2026-07-03 15:52:46 +01:00
parent eafa5eb90c
commit a4b3838125
3 changed files with 8 additions and 8 deletions
+5 -5
View File
@@ -1,10 +1,10 @@
/*
* protocol/protocol.h control-plane (de)serialization + routing.
* protocol/protocol.h: control-plane (de)serialization + routing.
*
* Design: docs/protocol.md. Wire format is a length-prefixed protobuf `Envelope`
* Wire format is a length-prefixed protobuf `Envelope`
* (core/proto/voicecat.proto). This layer parses frames into Envelopes, correlates
* request_id response, and dispatches to handlers. Media frames do NOT come through here
* (they use the fixed binary header in voice.md §2).
* request_id response, and dispatches to handlers. Media frames do NOT come through here
* (they use the fixed binary header
*
* FrameCodec below is used by both the client (net/transport.h) and the server
* (conn_session.cpp). See protocol/envelope.h for the Envelope-level encode/decode that sits
@@ -20,7 +20,7 @@
namespace voicecat::protocol {
constexpr uint32_t kProtocolVersion = 1;
constexpr uint32_t kMaxFrameBytes = 16u * 1024 * 1024; // docs/protocol.md §1 guard
constexpr uint32_t kMaxFrameBytes = 16u * 1024 * 1024;
constexpr size_t kLengthHeaderSize = 4; // big-endian u32 prefix
// Reads/writes [u32 big-endian length][payload] frames from a byte stream.