CTR Pia  4.11.3
Game Communication Engine
common_PacketDefine.h
1 /*---------------------------------------------------------------------------*
2  Project: Pia
3  File: common_PacketDefine.h
4 
5  Copyright Nintendo. All rights reserved.
6 
7  These coded instructions, statements, and computer programs contain
8  proprietary information of Nintendo of America Inc. and/or Nintendo
9  Company Ltd., and are protected by Federal copyright law. They may
10  not be disclosed to third parties or copied or duplicated in any form,
11  in whole or in part, without the prior written consent of Nintendo.
12  *---------------------------------------------------------------------------*/
13 
14 
15 #pragma once
16 
17 #include <pia/common/common_definitions.h>
18 
19 // Defines packet-related constants.
20 
21 namespace nn
22 {
23 namespace pia
24 {
25 namespace common
26 {
27 
28 static const size_t PACKET_SIZE_MAX = 1462;
29 static const size_t PACKET_HEADER_SIZE = 12;
30 static const size_t PACKET_PAYLOAD_SIZE_MAX = PACKET_SIZE_MAX - PACKET_HEADER_SIZE;
31 
32 static const size_t PROTOCOL_MESSAGE_SIZE_MAX = PACKET_PAYLOAD_SIZE_MAX;
33 static const size_t PROTOCOL_MESSAGE_HEADER_SIZE = 20;
34 static const size_t PROTOCOL_MESSGAE_PAYLOAD_SIZE_MAX = PROTOCOL_MESSAGE_SIZE_MAX - PROTOCOL_MESSAGE_HEADER_SIZE;
35 }
36 }
37 } // end of namespace nn::pia::common
Definition: assert.h:115