Constructor
new AddrPacket(itemsnullable)
Create a addr
packet.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
items |
Array.<NetAddress> |
<nullable> |
Properties:
Name | Type | Description |
---|---|---|
items |
Array.<NetAddress> |
- Source:
Extends
- Packet
Methods
getSize() → {Number}
Get serialization size.
- Source:
Returns:
- Type
- Number
(private) read(data)
Inject properties from serialized data.
Parameters:
Name | Type | Description |
---|---|---|
data |
Buffer |
- Source:
write(bw)
Serialize addr packet to writer.
Parameters:
Name | Type | Description |
---|---|---|
bw |
BufferWriter |
- Source: