addr
message. Provide information on known nodes of the network.
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
- + messages.js, line 166 +
+
+
+
+
+
+ - See: +
- + + + + + +
Methods
+ + + + + + +(static) decode(buf) → {Object}
+ + + + + +Decode addr
message.
Parameters:
+ + +Name | + + +Type | + + + + + +Description | +
---|---|---|
buf |
+
+
+ + + +Buffer + + + + | + + + + + +Message |
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
- + messages.js, line 172 +
+
+
+
+
+
+
+
+
Returns:
+ + +Decoded addr
structure.
-
+
- + Type + +
- + +Object + + + +
(static) decodePayload(buf) → {Object}
+ + + + + +Decode addr
message payload.
Parameters:
+ + +Name | + + +Type | + + + + + +Description | +
---|---|---|
buf |
+
+
+ + + +Buffer + + + + | + + + + + +Message payload |
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
- + messages.js, line 183 +
+
+
+
+
+
+
+
+
Returns:
+ + +Decoded addr
structure.
-
+
- + Type + +
- + +Object + + + +
(static) encode(addrs) → {Buffer}
+ + + + + +Encode addr
message.
Parameters:
+ + +Name | + + +Type | + + + + + +Description | +
---|---|---|
addrs |
+
+
+ + + +Array.<Object> + + + + | + + + + + +Network addresses |
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
- + messages.js, line 206 +
+
+
+
+
+
+
+
+
Returns:
+ + +Encoded message.
+-
+
- + Type + +
- + +Buffer + + + +
(static) encodePayload(addrs) → {Buffer}
+ + + + + +Encode addr
message payload.
Parameters:
+ + +Name | + + +Type | + + + + + +Description | +
---|---|---|
addrs |
+
+
+ + + +Array.<Object> + + + + | + + + + + +Network addresses |
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
- + messages.js, line 216 +
+
+
+
+
+
+
+
+
Returns:
+ + +Encoded payload.
+-
+
- + Type + +
- + +Buffer + + + +