Class: GetAddrPacket

net/packets~GetAddrPacket()

GetAddr Packet

Constructor

new GetAddrPacket()

Create a getaddr packet.

Source:

Extends

  • Packet

Methods

(static) fromRaw(data, encnullable) → {GetAddrPacket}

Instantiate getaddr packet from serialized data.

Parameters:
Name Type Attributes Description
data Buffer
enc String <nullable>
Source:
Returns:
Type
GetAddrPacket

(static) fromReader(br) → {GetAddrPacket}

Instantiate getaddr packet from buffer reader.

Parameters:
Name Type Description
br BufferReader
Source:
Returns:
Type
GetAddrPacket