Table of Contents

Class PongPayload

Namespace
NLightning.Bolts.BOLT1.Payloads
Assembly
NLightning.Bolts.dll

Represents a Pong payload.

public class PongPayload : IMessagePayload
Inheritance
PongPayload
Implements
Inherited Members

Remarks

A Pong payload is used to respond to a Ping payload.

Constructors

PongPayload(ushort)

Represents a Pong payload.

public PongPayload(ushort bytesLen)

Parameters

bytesLen ushort

The number of bytes in the pong payload.

Remarks

A Pong payload is used to respond to a Ping payload.

See Also

Properties

BytesLength

The length of the ignored bytes.

public ushort BytesLength { get; }

Property Value

ushort

Ignored

The ignored bytes.

public byte[] Ignored { get; }

Property Value

byte[]

Methods

DeserializeAsync(Stream)

Deserialize a PongPayload from a stream.

public static Task<PongPayload> DeserializeAsync(Stream stream)

Parameters

stream Stream

The stream to deserialize from.

Returns

Task<PongPayload>

The deserialized PongPayload.

Exceptions

SerializationException

Error deserializing Payload

SerializeAsync(Stream)

Serializes the message payload to a stream.

public Task SerializeAsync(Stream stream)

Parameters

stream Stream

The stream to serialize to.

Returns

Task

A task that represents the asynchronous operation.

See Also