Table of Contents

Class LinoProtocols

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

Detects which protocol a peer used.

public static class LinoProtocols
Inheritance
LinoProtocols
Inherited Members

Methods

IsBinaryStart(byte)

True when value starts a binary message rather than a text one.

public static bool IsBinaryStart(byte value)

Parameters

value byte

Returns

bool

Reads one message in whichever protocol the peer used; null at the end of the stream.

public static (IReadOnlyList<Link<string>> Document, MessageFormat Format)? ReadAnyDocument(PacketReader input, ProtocolLimits? limits = null)

Parameters

input PacketReader
limits ProtocolLimits

Returns

(IReadOnlyList<Link<string>> Document, MessageFormat Format)?