17 #include <pia/session/session_SessionSearchCriteria.h> 18 #include <pia/inet/inet_NexSessionTypes.h> 21 #pragma diag_suppress 1300 //n1769: Pragma for ARMCC. 25 #pragma diag_warning 1300 //n1769: Pragma for ARMCC. 48 NexCondMask_MinParticipation = 0,
49 NexCondMask_MaxParticipation,
50 NexCondMask_OpenedOnly,
51 NexCondMask_VacantOnly,
53 NexCondMask_SessionType,
54 NexCondMask_Attribute,
55 NexCondMask_ExcludeNonHost,
56 NexCondMask_ExcludeUserPassword,
57 NexCondMask_ScoreBasedSettingIndex,
58 NexCondMask_ScoreBasedRatingValue,
59 NexCondMask_ScoreBasedDisconnectionRate,
60 NexCondMask_ScoreBasedViolationRate,
61 NexCondMask_ScoreBasedCountryCode,
62 NexCondMask_ScoreBasedGeoIp,
63 NexCondMask_ScoreBasedOverrideIp,
64 NexCondMask_Community,
142 void SetAttribute(u32 index, u32* value,
size_t attributeNum);
228 u32 GetCommunityId();
235 void ConvertToNexMatchmakeSessionSearchCriteria(
236 nn::nex::MatchmakeSessionSearchCriteria* pCriteria,
237 nn::nex::MatchmakeParam* pParam,
238 nn::nex::ResultRange* pResultRange,
253 virtual void Trace(u64 flag)
const;
261 static const u16 INVALID_PARICIPANTS_NUM = 0xffff;
264 u16 m_MinParticipantsRangeMax;
265 u16 m_MinParticipantsRangeMin;
268 u16 m_MaxParticipantsRangeMax;
269 u16 m_MaxParticipantsRangeMin;
289 bool m_bExcludeNonHostPid;
291 bool m_bExcludeUserPasswordSet;
295 u32 m_ScoreBasedSettingIndex;
296 u32 m_ScoreBasedRatingValue;
297 u32 m_ScoreBasedDisconnectionRate;
298 u32 m_ScoreBasedViolationRate;
299 u32 m_ScoreBasedCountryCode;
300 bool m_IsScoreBasedGeoIpUsed;
302 wchar_t m_IpAddress[MAX_IP_ADDRESS_LENGTH + 1];
const size_t ATTRIBUTE_MAX_SIZE
The number of attributes that can be specified in a session.
Definition: inet_NexSessionTypes.h:39
NexSessionSearchCriteria & operator=(const NexSessionSearchCriteria &r)
Assignment operator.
void SetViolationRate(u32 violationRate)
Sets the violation rate to use for comparison during nn::pia::inet::SELECTION_METHOD_SCORE_BASED.
The base class for the search criteria used when searching for sessions.
Definition: session_SessionSearchCriteria.h:34
void SetMinParticipants(u16 min)
Sets the minimum participants in the search criteria.
SelectionMethod
Enumerates the selection methods for joining sessions when random matchmaking is in force...
Definition: inet_NexSessionTypes.h:87
void SetAttributeRange(u32 index, u32 min, u32 max)
Sets a range of values to use when searching for a single attribute.
void SetOpenedOnly(bool bOpenedOnly)
Sets whether to search only for sessions that are open to participants in the search criteria...
void SetExcludeNonHostPid(bool bExclude)
Sets whether to exclude sessions with no hosts from the search. (By default, they are excluded...
void SetMinParticipantsRange(u16 min, u16 max)
Sets a range of minimum participants in the search criteria.
void SetRatingValue(u32 ratingValue)
Sets the rating value to use for comparison during nn::pia::inet::SELECTION_METHOD_SCORE_BASED.
void SetMaxParticipantsRange(u16 min, u16 max)
Sets a range of maximum participants in the search criteria.
NexSessionSearchCriteria()
The default constructor.
void SetScoreSettingIndex(u32 settingIndex)
Sets the setting index for the score calculation method to use during nn::pia::inet::SELECTION_METHOD...
void SetAttribute(u32 index, u32 value)
Sets a value to use when searching for a single attribute.
The search condition class used when searching for a session.
Definition: inet_NexSessionSearchCriteria.h:43
void SetCommunityId(u32 gid)
Sets the ID for the associated community (persistent gathering).
SessionType
Enumerates the session types.
Definition: inet_NexSessionTypes.h:78
void SetMaxParticipants(u16 max)
Sets the maximum participants in the search criteria.
void SetNintendoCountryCode(u32 countryCode)
Sets the country code to use for comparison during nn::pia::inet::SELECTION_METHOD_SCORE_BASED.
void SetOverrideIpAddress(const wchar_t *pIpAddress, size_t ipAddressLength)
Sets the IP address for debugging to use for comparison during nn::pia::inet::SELECTION_METHOD_SCORE_...
void SetRandomSessionSelectionMethod(SelectionMethod selectionMethod)
Sets the selection methods for joining sessions when random matchmaking is in effect.
void SetExcludeUserPasswordSet(bool bExclude)
Sets whether to exclude sessions for which a user password was set from the search. (By default, they are excluded.)
void SetGameMode(u32 gameMode)
Sets the search conditions to game mode.
void SetVacantOnly(bool bVacantOnly)
Sets whether to search only for sessions that have openings in the search criteria.
void SetUseGeoIp(bool b)
Sets whether to use position information (longitude and latitude, country code) for comparison during...
virtual ~NexSessionSearchCriteria()
The destructor.
void SetDisconnectionRate(u32 disconnectionRate)
Sets the disconnection rate to use for comparison during nn::pia::inet::SELECTION_METHOD_SCORE_BASED...
void SetSessionType(SessionType sessionType)
Sets the session type search conditions.