Table of Contents

Class ProtocolLimits

Namespace
Foundation.Data.Doublets.Cli.Protocol
Assembly
Foundation.Data.Doublets.Cli.dll

Limits applied when reading messages of either protocol.

public sealed record ProtocolLimits : IEquatable<ProtocolLimits>
Inheritance
ProtocolLimits
Implements
Inherited Members

Properties

Binary

Limits applied to binary packets, see Limits.

public DecodeLimits Binary { get; init; }

Property Value

DecodeLimits

Default

Bounds every message so a hostile peer cannot exhaust memory or time.

public static ProtocolLimits Default { get; }

Property Value

ProtocolLimits

MaxTextBytes

Maximum size of a text message in bytes, see MaxTextBytes.

public long MaxTextBytes { get; init; }

Property Value

long

Unlimited

No limits, for trusted input such as a store archive.

public static ProtocolLimits Unlimited { get; }

Property Value

ProtocolLimits