Class LinoProtocols
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
valuebyte
Returns
ReadAnyDocument(PacketReader, ProtocolLimits?)
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
inputPacketReaderlimitsProtocolLimits
Returns
- (IReadOnlyList<Link<string>> Document, MessageFormat Format)?