3.1.5.18 Receiving a LinkMacToViewerReportEndOfStream Message

The client MUST perform the steps in section 3.1.5.2. Also, the client MUST verify that the LinkMacToViewerReportEndOfStream message adheres to the syntax specified in section 2.2.4.5.

If the value of the Stop-Sent variable is 1, the State variable in the abstract data model MUST be set to READY.

If the value of the Stop-Sent variable is 0, the client MUST send a LinkViewerToMacLogging (section 2.2.4.20) message.<46>

The value of the dwSourceId field in the log structure of the LinkViewerToMacLogging message MUST be set to the value of the File-ID variable in the abstract data model.

If the server's major version number is greater than or equal to 9, as specified by the Server-Version variable in the abstract data model, and the value of the hr field in the LinkMacToViewerReportEndOfStream message is not equal to 0x00000001, the State variable MUST be set to READY.

If the server's major version number is less than 9, as specified by the Server-Version variable, and the value of the hr field in the LinkMacToViewerReportEndOfStream message is not equal to 0x00000000, the State variable MUST be set to READY.

If the server's major version number is less than 9, as specified by the Server-Version variable, and the fileAttributes field in the LinkMacToViewerReportOpenFile message did not have the 0x02000000 bit set, the State variable MUST be set to READY.

The client MUST set the value of the Stop-Sent variable to 0

If the State variable is set to READY, the client MUST report this to the higher layer.

If the value of the State variable is READY and the value of the Stream-Switch-Sent variable is 1, the client MUST wait for a LinkMacToViewerReportStreamSwitch message to be received.

If the value of the State variable is STREAMING, the client MUST wait for either a LinkMacToViewerReportStreamChange message, or if the value of theĀ  Stream-Switch-Sent variable is 1 a LinkMacToViewerReportStreamSwitch message, to be received. Processing information for the LinkMacToViewerReportStreamSwitch message is specified in section 3.1.5.14. Processing information for the LinkMacToViewerReportStreamChange is specified in section 3.1.5.19.