nn::nex::StreamSettings::SetIsEncryptionRequired Member Function

Syntax

void SetIsEncryptionRequired(
     qBool flag
);

Parameters

Name Description
in flag true if enabled; false otherwise.

Return Values

None.

Description

Sets whether to enable encryption.

When using encryption, before using NetZ to execute the Session::JoinSession or Session::CreateSession function, execute Stream::GetSettings.SetIsEncryptionRequired(true); and set a key using Stream::GetSettings.SetEncryptionKey. If canceling encryption, do so after executing the NetZ::Terminate function. Operations outside the correct segment result in an assertion, or settings fail.

These two functions do not work if an encryption key is not set.

See Also

IsEncryptionRequired
SetEncryptionKey

Revision History

2012/09/03
Added that encryption should be canceled after executing the NetZ::Terminate function. Also, added that an assertion is generated for updates outside the correct segment.
2012/07/09
Initial version.

CONFIDENTIAL