4.1.2 Discovery Presence Response

When Peer B receives the Discovery Presence Request from Peer A, it proceeds to respond with a Discovery Presence Response. On IP networks, this is sent from the well-defined port 5050. MessageLength = 97 bytes.


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

Signature = 0x30, 0x30

MessageLength = 97 bytes

0x00, 0x61

Version = 0x03

MessageType = Discovery

0x01

MessageFlags = None

0x00, 0x00

SequenceNumber = 0

0x00, 0x00, 0x00, 0x00

RequestID = 0

0x00, 0x00, 0x00, 0x00,

0x00, 0x00, 0x00, 0x00

FragmentIndex = 0

0x00, 0x00

FragmentCount = 1

0x00, 0x01

SessionID =

0x00, 0x00, 0x00, 0x00,

0x00, 0x00, 0x00, 0x00

ChannelID = 0

0x00, 0x00, 0x00, 0x00,

0x00, 0x00, 0x00, 0x00

EndAdditionalHeaders = 0x00, 0x00

DiscoveryType = PresenceResponse

0x01

ConnectionMode = Proximal

0x00, 0x01

DeviceType = Windows10Desktop

0x00, 0x09

DeviceNameLength = 11 bytes

0x00, 0x0B

DeviceName = "devicers1-1" (null-terminated)

0x64, 0x65, 0x76, 0x69,

0x63, 0x65, 0x72, 0x73

...

DeviceIdSalt = 0xD6, 0xE7, 0x60, 0x2D

DeviceIdHash = SHA256 hash of device id, salted, 32-bytes

0x11, 0x16, 0x6D, 0x8B,

0x4C, 0x02, 0x7A, 0x54