CTR-Pia  5.4.3
Game Communication Engine
 全て クラス ネームスペース 関数 変数 型定義 列挙型 列挙型の値 ページ
common_PacketDefine.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/common/common_Definitions.h>
17 
18 // パケット関連の定数定義です。
19 
20 namespace nn
21 {
22 namespace pia
23 {
24 namespace common
25 {
26 static const uint32_t Ipv4HeaderSize = 20;
27 static const uint32_t UdpHeaderSize = 8;
28 
29 static const uint32_t PacketSizeMax = 1472;
30 static const uint32_t PacketHeaderSize = 12;
31 static const uint32_t PacketPayloadSizeMax = PacketSizeMax - PacketHeaderSize;
32 
33 static const uint32_t ProtocolMessageSizeMax = PacketPayloadSizeMax;
34 static const uint32_t ProtocolMessageHeaderSize = 20;
35 static const uint32_t ProtocolMessgaePayloadSizeMax = ProtocolMessageSizeMax - ProtocolMessageHeaderSize;
36 }
37 }
38 } // end of namespace nn::pia::common