3.1.5.2.1 Adding a Client to the Pending Client List

The server MUST add a new record into the Pending Client List (section 3.1.1.2) and set the attributes of the entry as specified below.

IPAddress: MUST be set to the source IP address of the UDP packet sent by the client for its JOIN packet (section 2.2.5).

UDPPort: MUST be set to the source port of the UDP packet sent by the client for the JOIN packet.

ClientTime: MUST be set to value of the SenderTime field of the JOIN packet.

LastUpdate: MUST be set to the local time on the server, in millisecond granularity.

ClientId: MUST be set to the value of NextClientId field (section 3.1.1.1), after which the value of NextClientId MUST be incremented by one.

SupportsDemote: If the JOIN packet specifies the WDSMCTP_OPT_CAPABILITIES Extended Option (section 2.2.5.1), and the value for the Extended Option specifies WDSMCTP_CAP_MULTISTREAM (section 2.2.5.1), then this parameter MUST be set to TRUE  (0x00000001); otherwise, it MUST be set to  FALSE (0x00000000).

All remaining parameters for this record MUST be set to values specified for initialization in section 3.1.1.2 before it is added to the list.