2.2.11 LEAVE Packet

This packet MUST be sent by the client before it leaves the multicast session. The packet MUST be sent to the Unicast address of the server.


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

ClientId

LeaveReason

ClientId (4 bytes): Specifies the unique ID assigned to the client by the server using the JOINACK packet (section 2.2.6).

LeaveReason (1 byte): MUST be set to a numeric value specifying the reason for leaving the session. The following table specifies the possible reasons.

Value

Meaning

WDSMCTP_LEAVE_REASON_COMPLETE

0x00

MUST be set when the client has fully downloaded the content and no longer requires access to the multicast session.

WDSMCTP_LEAVE_REASON_CANCELLED

0x01

MUST be set when a user or administrative action on the client caused the client to remove itself from the multicast session before it could fully download the content.

WDSMCTP_LEAVE_REASON_INACTIVE

0x02

MUST be set if the client is leaving the multicast session because the client failed to receive any packets.

This packet does not have any Extended Options.