Cleanup protocol/ comments
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user