2.2.3.4 Presence Record

The Presence Record is used to publish information about a node.

It is represented as a PEER_RECORD (section 2.2.1.9) with the following fields set:

Record Type MUST be set to the GUID value {00000400-0000-0000-0000-000000000000}

Payload Data MUST have the following data format.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Node ID

...

Attributes Length

Attributes (variable)

...

Number of Addresses

Addresses (variable)

...

Node ID (8 bytes): The node ID of the publisher.

Attributes Length (4 bytes): The length, in characters, of the Attributes string, including the terminating null character.

Attributes (variable): The node attributes as a null-terminated Unicode string. If the Attributes Length value is 0x00000000, this field MUST NOT be present.

Number of Addresses (4 bytes): The number of Addresses.

Addresses (variable): The array of addresses for the given node. Each address is expressed in PEER_ADDRESS (section 2.2.1.5) format.