Path: redb-route/redb.Route.Tcp/TcpEnums.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Tcp/TcpEnums.cs
----
namespace redb.Route.Tcp;
///
/// Message framing mode for TCP communication.
/// Determines how messages are delimited on the wire.
///
public enum TcpFraming
{
/// Raw mode: entire read buffer is one message. No framing applied.
Raw,
/// Text-line mode: messages delimited by a configurable delimiter (default: newline).
TextLine,
/// Length-prefixed mode: 4-byte big-endian length header followed by payload bytes.
LengthPrefixed
}