3.3.7.4 Socket Gracefully Closed Event

If the Share Receiver state is not ReceivingPackage, the ShareReceiver object MUST be abandoned.

If the Share Receiver state is ReceivingPackage, the received data can be decrypted and provided to the user. The ShareReceiver object MUST now be deactivated for external interactions.

All decrypted data except the final three blocks MUST be interpreted as an OPC package.

The final three blocks of decrypted data MUST be interpreted as a Share Protocol footer (section 2.2.4), and only the Remainder field is to be interpreted as the final bytes of the actual OPC package.