addr
message. Provide information on known nodes of the network.
Methods
(static) decode(buf) → {DecodeResult}
Decode addr
message.
Parameters:
Name | Type | Description |
---|---|---|
buf |
Buffer | Message |
- Source:
Returns:
- Type
- DecodeResult
(static) decodePayload()
Decode addr
message payload.
The same as decode.
- Source:
(static) encode(addrs) → {Buffer}
Encode addr
message.
Parameters:
Name | Type | Description |
---|---|---|
addrs |
Array.<Object> | List of net_addr encode options |
- Source:
Returns:
Encoded message.
- Type
- Buffer
(static) encodePayload()
Encode addr
message payload.
The same as encode.
- Source:
Type Definitions
DecodeResult
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
addrs |
Array.<Object> | List of
decoded |
length |
number | Real data length |
- Source: