CTR-Pia  5.4.3
Game Communication Engine
 全て クラス ネームスペース 関数 変数 型定義 列挙型 列挙型の値 ページ
inet_Definitions.h
1 /*--------------------------------------------------------------------------------*
2  Copyright (C)Nintendo All rights reserved.
3 
4  These coded instructions, statements, and computer programs contain proprietary
5  information of Nintendo and/or its licensed developers and are protected by
6  national and international copyright laws. They may not be disclosed to third
7  parties or copied or duplicated in any form, in whole or in part, without the
8  prior written consent of Nintendo.
9 
10  The content herein is highly confidential and should be handled accordingly.
11  *--------------------------------------------------------------------------------*/
12 
13 
14 #pragma once
15 
16 #include <nn/pia/pia_Definitions.h>
17 #include <nn/pia/pia_Assert.h>
18 
19 #if NN_PIA_ENABLE_NEX
20 //n1872:NEXのバージョン情報
21 #include <OnlineCore/src/version/nex_version.h>
22 
23 #define NEX_VERSION_NUMBER(major, minor, micro) (((major) << 16) | ((minor) << 8) | ((micro) << 0))
24 #define NEX_CURRENT_VERSION_NUMBER NEX_VERSION_NUMBER(NEX_VERSION_MAJOR, NEX_VERSION_MINOR, NEX_VERSION_MICRO)
25 
26 //n1872: ProbeInitiation の Request 先をリストで指定する場合は 1 にする
27 #define NN_PIA_ENABLE_PROBE_TARGET_LIST 0
28 
29 #if (NEX_CURRENT_VERSION_NUMBER >= NEX_VERSION_NUMBER(3, 10, 0))
30 #define NN_PIA_ENABLE_PARTICIPANT_SETTING 1
31 #else
32 #define NN_PIA_ENABLE_PARTICIPANT_SETTING 0
33 #endif
34 
35 //n1872: サーバーへの問い合わせ無しに参加中のセッション情報を更新する
36 #define NN_PIA_EXPERIMENT_SERVERLESS_UPDATE_SESSION_INFO 0
37 
38 #if (NEX_CURRENT_VERSION_NUMBER >= NEX_VERSION_NUMBER(4, 0, 2)) && NN_PIA_NINTENDOSDK
39 #define NN_PIA_ENABLE_ISO_COUNTRY_CODE 1
40 #else
41 #define NN_PIA_ENABLE_ISO_COUNTRY_CODE 0
42 #endif
43 
44 #if (NN_PIA_CTR || NN_PIA_CAFE) && (NEX_CURRENT_VERSION_NUMBER < NEX_VERSION_NUMBER(4, 0, 0))
45 #define NN_PIA_ENABLE_SESSION_TYPE_FRIEND 1
46 #else
47 #define NN_PIA_ENABLE_SESSION_TYPE_FRIEND 0
48 #endif
49 
50 //n1589:普通の定義はここから
51 namespace nn
52 {
53 namespace pia
54 {
55 namespace inet
56 {
57 const uint32_t MtuSizeMax = 1364; //!< MTUの上限定数です。
58 const uint32_t MtuSizeMin = 576; //!< MTUの下限定数です。
59 const uint32_t DefaultMtuSize = 1240; //!< MTUのデフォルト定数です。
60 
61 const int DefaultRttInitialPulseInterval = 200; //!< 初期段階での RTT 計測パルス送信間隔のデフォルト値です。単位はミリ秒です。
62 }
63 }
64 } // end of namespace nn::pia::inet
65 #endif
66 
67 //n1589:このモジュールの全クラスのヘッダでインクルードするもの
68 #include <nn/pia/common/common_RootObject.h>
69 #include <nn/pia/common/common_Report.h>
70 #include <nn/pia/common/common_Trace.h>