<PackageReference Include="BouncyCastle.Cryptography" Version="2.5.1" />

HeartbeatMessage

public sealed class HeartbeatMessage
public int PaddingLength { get; }

public byte[] Payload { get; }

public short Type { get; }

public HeartbeatMessage(short type, byte[] payload, byte[] padding)

public static HeartbeatMessage Create(TlsContext context, short type, byte[] payload)

public static HeartbeatMessage Create(TlsContext context, short type, byte[] payload, int paddingLength)

public static HeartbeatMessage Parse(Stream input)

Parse a HeartbeatMessage from a Stream.

public void Encode(Stream output)

Encode this HeartbeatMessage to a Stream.