Add NODE_GATEWAY/NODE_MOBILE unofficial bits

This commit is contained in:
Kagami Hiiragi 2015-02-14 18:22:57 +03:00
parent f251b3e569
commit c2cd98fe7f

View File

@ -992,6 +992,22 @@ var ServicesBitfield = exports.ServicesBitfield = objectAssign(Bitfield(64), {
* @constant {number} * @constant {number}
*/ */
NODE_NETWORK: 63, NODE_NETWORK: 63,
/**
* Bit index indicating web/mobile client with limited network
* capabilities (proposal feature).
* @memberof module:bitmessage/structs.ServicesBitfield
* @see {@link https://bitmessage.org/wiki/Mobile_Protocol_specification}
* @constant {number}
*/
NODE_MOBILE: 62,
/**
* Bit index indicating node which can work as a WebSocket gateway for
* web/mobile clients (proposal feature).
* @memberof module:bitmessage/structs.ServicesBitfield
* @see {@link https://bitmessage.org/wiki/Mobile_Protocol_specification}
* @constant {number}
*/
NODE_GATEWAY: 61,
}); });
/** /**
@ -1035,6 +1051,14 @@ exports.PubkeyBitfield = objectAssign(Bitfield(32), {
* @memberof module:bitmessage/structs.PubkeyBitfield * @memberof module:bitmessage/structs.PubkeyBitfield
*/ */
/**
* Bit index.
* If set, the receiving node does send acknowledgements (rather than
* dropping them).
* @memberof module:bitmessage/structs.PubkeyBitfield
* @constant {number}
*/
DOES_ACK: 31,
/** /**
* Bit index. * Bit index.
* If set, the receiving node expects that the RIPEMD hash encoded in * If set, the receiving node expects that the RIPEMD hash encoded in
@ -1044,12 +1068,4 @@ exports.PubkeyBitfield = objectAssign(Bitfield(32), {
* @constant {number} * @constant {number}
*/ */
INCLUDE_DESTINATION: 30, INCLUDE_DESTINATION: 30,
/**
* Bit index.
* If set, the receiving node does send acknowledgements (rather than
* dropping them).
* @memberof module:bitmessage/structs.PubkeyBitfield
* @constant {number}
*/
DOES_ACK: 31,
}); });