nn::nex::MatchmakeSessionSearchCriteria::SetAttribute Member Function

Syntax

qBool SetAttribute(
     qUnsignedInt32 uiIndex,
     const qVector< qUnsignedInt32 > & vals
);

Parameters

Name Description
in uiIndex Index of the attribute to set. You can specify a value greater than or equal to 0 but less than or equal to NUM_MATCHMAKE_SESSION_ATTRIBUTES - 1.
in vals Application-defined attribute values. Keep the number of values between 1 and SETATTIBUTE_VECTOR_SIZE_MAX.

Return Values

If the number of attribute values is 0 or greater than SETATTIBUTE_VECTOR_SIZE_MAX, the function returns false. Otherwise, it specifies attributes and returns true.

Description

Specifies the attributes to search for. Multiple attributes can be specified.

Specifies the attributes to search for. You can specify up to the number of attributes given by NUM_MATCHMAKE_SESSION_ATTRIBUTES. Unspecified indices match any value.

The attribute values in indexes 0 to NUM_MATCHMAKE_SESSION_ATTRIBUTES - 1 are all evaluated at once. The order of the index values does not matter.

Revision History

2013/05/27
Added a note indicating that attribute values are evaluated all at once and the order of the indexes does not matter.
2013/03/18
Initial version.

CONFIDENTIAL