Class: PongPacket

net/packets~PongPacket(nonce)

Pong Packet

Constructor

new PongPacket(nonce)

Create a pong packet.

Parameters:
Name Type Description
nonce Buffer
Properties:
Name Type Description
nonce BN
Source:

Extends

  • Packet

Methods

getSize() → {Number}

Get serialization size.

Source:
Returns:
Type
Number

read(br)

Inject properties from buffer reader.

Parameters:
Name Type Description
br bio.BufferReader
Source:

write(bw) → {BufioWriter}

Serialize pong packet to writer.

Parameters:
Name Type Description
bw BufioWriter
Source:
Returns:
Type
BufioWriter