CTR-Pia  5.4.3
Game Communication Engine
 全て クラス ネームスペース 関数 変数 型定義 列挙型 列挙型の値 ページ
transport_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 
17 #include <nn/pia/pia_Result.h>
18 #include <nn/pia/common/common_RootObject.h>
19 #include <nn/pia/common/common_ResultUtility.h>
20 
21 // Piaライブラリ開発者用。
22 #define NN_PIA_TRANSPORT_ENABLE_DETAILED_TRACE 0
23 #define NN_PIA_EXPERIMENT_RELIABLE_DETAIL_INFO 0 // n1769 実験用。Reliable通信パフォーマンス測定が目的。
24 
25 #define NN_PIA_EXPERIMENT_LATENCY_EMULATION_ERROR_HANDLING 1 // n1769 レイテンシエミュレーション使用時に送受信関数のエラー Result を無視しないようにするなら 1
26 
27 //n1589:test:off
28 #define NN_PIA_ENABLE_STATISTIC_THREAD_STREAM_BLOCK_TIME 0
29 
30 
31 //n1589:普通の定義はここから
32 namespace nn
33 {
34 namespace pia
35 {
36 namespace transport
37 {
38 
39 // n3389 : ProtocolType であり、 ProtocolId とは別
40 // この値の順番にプロトコルの処理が回ります。
41 // 優先的に処理したいプロトコルに小さい値を割り当てる必要があります。
42 static const uint16_t ProtocolTypeRelay = 0x0080;
43 static const uint16_t ProtocolTypeKeepAlive = 0x00c0;
44 static const uint16_t ProtocolTypeStation = 0x0100;
45 static const uint16_t ProtocolTypeMesh = 0x0200;
46 static const uint16_t ProtocolTypeSyncClock = 0x0210;
47 static const uint16_t ProtocolTypeLocal = 0x0300;
48 static const uint16_t ProtocolTypeDirect = 0x0310;
49 static const uint16_t ProtocolTypeNet = 0x0320;
50 //static const uint16_t ProtocolTypeLocalLdn = 0x0300;
51 //static const uint16_t ProtocolTypeLocalUds = 0x0310;
52 static const uint16_t ProtocolTypeNat = 0x0400;
53 static const uint16_t ProtocolTypeGateway = 0x0410;
54 static const uint16_t ProtocolTypeLan = 0x0420;
55 static const uint16_t ProtocolTypeBandwidthCheck = 0x0500;
56 static const uint16_t ProtocolTypeRtt = 0x0600;
57 static const uint16_t ProtocolTypeSyncOld = 0x1800;
58 static const uint16_t ProtocolTypeSync = 0x1810;
59 static const uint16_t ProtocolTypeUnreliable = 0x2000;
60 static const uint16_t ProtocolTypeRoundrobinUnreliable = 0x2100;
61 static const uint16_t ProtocolTypeClone = 0x2400;
62 static const uint16_t ProtocolTypeVoice = 0x2800;
63 static const uint16_t ProtocolTypeReliable = 0x3000;
64 static const uint16_t ProtocolTypeReliableBroadcast = 0x7000;
65 static const uint16_t ProtocolTypeSession = 0x7200;
66 static const uint16_t ProtocolTypeMonitoringData = 0x8000;
67 static const uint16_t ProtocolTypeRelayService = 0x8200;
68 }
69 }
70 } // end of namespace nn::pia::transport
71 
72 //n1589:このモジュールの全クラスのヘッダでインクルードするもの