17 #include <pia/session/session_CreateSessionSetting.h> 18 #include <pia/inet/inet_NexSessionTypes.h> 115 nn::Result
GetApplicationData(u8* pDataBuf,
size_t* pDataSize,
size_t dataBufSize)
const;
123 return m_ApplicationDataSize;
140 bool GetOpenParticipation()
const;
157 const wchar_t* GetSessionUserPassword()
const;
181 u8 GetSelectionPriority()
const;
192 u32 GetRatingValue()
const;
193 bool IsSetRatingValue()
const;
205 u32 GetDisconnectionRate()
const;
206 bool IsSetDisconnectionRate()
const;
218 u32 GetViolationRate()
const;
219 bool IsSetViolationRate()
const;
231 bool GetUseGeoIp()
const;
232 bool IsSetUseGeoIp()
const;
246 u32 GetNintendoCountryCode()
const;
247 bool IsSetNintendoCountryCode()
const;
262 const wchar_t* GetOverrideIpAddress()
const;
263 bool IsSetOverrideIpAddress()
const;
270 bool IsSetScoreBasedParameter()
const;
277 void UpdateApplicationDataHeader(
const u8* pData,
size_t dataSize);
284 void GetApplicationDataInternal(
void* pVectorTmp)
const;
291 void CopyApplicationDataToVector(
void* pVectorTmp)
const;
295 void Trace(u64 flag)
const;
301 void SetExtraParticipants(u16 num);
302 u16 GetExtraParticipants()
const;
315 u32 GetCommunityId();
328 wchar_t m_Description[DESCRIPTION_DATA_BUFFER_MAX_SIZE + 1];
333 u8 m_ApplicationDataBuffer[APPLICATION_DATA_BUFFER_MAX_SIZE_INTERNAL];
334 size_t m_ApplicationDataSize;
335 size_t m_ApplicationDataInternalOffset;
337 bool m_OpenParticipation;
343 bool m_IsSetRatingValue;
346 bool m_IsSetViolationRate;
348 u32 m_DisconnectionRate;
349 bool m_IsSetDisconnectionRate;
352 bool m_IsSetUseGeoIp;
355 bool m_IsSetCountryCode;
357 wchar_t m_OverrideIpAddress[MAX_IP_ADDRESS_LENGTH + 1];
358 bool m_IsSetOverrideIpAddress;
360 u16 m_ExtraParticipants;
364 #if NN_PIA_NEX_NEW_FEATURE_FOR_MATCHMAKE const size_t ATTRIBUTE_MAX_SIZE
The number of attributes that can be specified in a session.
Definition: inet_NexSessionTypes.h:39
nn::Result SetApplicationData(const u8 *pData, size_t size)
Sets application-defined data.
void SetSessionType(SessionType sessionType)
Sets the session type for the new session.
void SetSelectionPriority(u8 priority)
Sets the matchmaking priority when a session with the same requirements is found. ...
void SetNintendoCountryCode(u32 countryCode)
Sets the country code to use for comparison during nn::pia::inet::SELECTION_METHOD_SCORE_BASED.
const wchar_t * GetDescription() const
Gets the specified description string.
void SetRatingValue(u32 ratingValue)
Sets the rating value to use for comparison during nn::pia::inet::SELECTION_METHOD_SCORE_BASED.
Base class that manages settings specific to session creation.
Definition: session_CreateSessionSetting.h:38
void SetDisconnectionRate(u32 disconnectionRate)
Sets the disconnection rate to use for comparison during nn::pia::inet::SELECTION_METHOD_SCORE_BASED...
const u32 SESSION_USER_PASSWORD_LENGTH
The user password's string length.
Definition: inet_NexSessionTypes.h:52
NexCreateSessionSetting()
The default constructor.
size_t GetApplicationDataSize() const
Gets the size of the specified application-defined data.
Definition: inet_NexCreateSessionSetting.h:121
u32 GetAttribute(u32 index) const
Gets the specified attribute.
SessionType GetSessionType() const
Gets the specified session type.
nn::Result GetApplicationData(u8 *pDataBuf, size_t *pDataSize, size_t dataBufSize) const
Gets specified application-defined data.
void SetAttribute(u32 index, u32 value)
Sets the attributes for the new session.
Class that manages settings specific to session creation.
Definition: inet_NexCreateSessionSetting.h:35
void SetOpenParticipation(bool isOpen)
Sets whether participation in this session is possible.
SessionType
Enumerates the session types.
Definition: inet_NexSessionTypes.h:78
virtual ~NexCreateSessionSetting()
The destructor.
u32 GetGameMode() const
Gets the specified game mode.
void SetGameMode(u32 gameMode)
Sets the game mode for the new session.
void UseGeoIp(bool b)
Sets whether to use position information (longitude and latitude, country code) for comparison during...
void SetDescription(const wchar_t *description)
Sets the description string for the new session.
void SetCommunityId(u32 gid)
Sets the associated community ID.
void SetViolationRate(u32 violationRate)
Sets the violation rate 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 SetSessionUserPassword(const wchar_t *pUserPassword, size_t passwordLength)
Sets the user password.