Class HeartbeatMessage
- Namespace
- Org.BouncyCastle.Tls
- Assembly
- BouncyCastle.Cryptography.dll
public sealed class HeartbeatMessage
- Inheritance
-
HeartbeatMessage
- Inherited Members
Constructors
HeartbeatMessage(short, byte[], byte[])
public HeartbeatMessage(short type, byte[] payload, byte[] padding)
Parameters
Properties
PaddingLength
public int PaddingLength { get; }
Property Value
Payload
public byte[] Payload { get; }
Property Value
- byte[]
Type
public short Type { get; }
Property Value
Methods
Create(TlsContext, short, byte[])
public static HeartbeatMessage Create(TlsContext context, short type, byte[] payload)
Parameters
contextTlsContexttypeshortpayloadbyte[]
Returns
Create(TlsContext, short, byte[], int)
public static HeartbeatMessage Create(TlsContext context, short type, byte[] payload, int paddingLength)
Parameters
contextTlsContexttypeshortpayloadbyte[]paddingLengthint
Returns
Encode(Stream)
Encode this HeartbeatMessage to a Stream.
public void Encode(Stream output)
Parameters
Exceptions
Parse(Stream)
Parse a HeartbeatMessage from a Stream.
public static HeartbeatMessage Parse(Stream input)
Parameters
Returns
- HeartbeatMessage
a HeartbeatMessage object.