CTR Pia  4.11.3
Game Communication Engine
transport_TransportAnalysisData.h
1 /*---------------------------------------------------------------------------*
2  Project: Pia
3  File: transport_TransportAnalysisData.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/transport/transport_definitions.h>
18 
19 #include <pia/transport/transport_PacketAnalysisData.h>
20 #include <pia/transport/transport_ConnectionAnalysisData.h>
21 
22 
23 namespace nn
24 {
25 namespace pia
26 {
27 namespace transport
28 {
29 
30 
31 /*!
32 @brief Contains the results of analyzing send and receive packets, and parameters indicating the quality of the connection (RTT and packet loss) to each station.
33 
34 @date 2013-10-29 Initial version.
35 
36 */
38 {
39  struct PacketAnalysisData sendPacketAnalysisData; //!< Sender packet analysis data.
40  struct PacketAnalysisData recvPacketAnalysisData; //!< Receiver packet analysis data.
41  struct ConnectionAnalysisData connectionAnalysisData; //!< Connection quality analysis data.
42 
43 /*!
44 @brief Outputs the data to the console.
45 
46 @param[in] bDetail Set to <tt>true</tt> to also output the protocol used internally by Pia.
47 */
48  void Print(bool bDetail) const;
49 
50 
51 /*!
52 @brief Prints information that is useful for debugging.
53 
54 @param[in] flag Specifies the bitwise OR of trace flags. For more information, see the <tt>@ref TraceFlag</tt> type.
55 */
56  void Trace(u64 flag) const;
57 };
58 }
59 }
60 } // end of namespace nn::pia::transport
void Print(bool bDetail) const
Outputs the data to the console.
The ConnectionAnalysisData structure contains parameters related to the connection quality (such as t...
Definition: transport_ConnectionAnalysisData.h:36
Definition: assert.h:115
struct PacketAnalysisData sendPacketAnalysisData
Sender packet analysis data.
Definition: transport_TransportAnalysisData.h:39
void Trace(u64 flag) const
Prints information that is useful for debugging.
Stores information required for tabulating the results of an analysis of the data in sent and receive...
Definition: transport_PacketAnalysisData.h:42
struct ConnectionAnalysisData connectionAnalysisData
Connection quality analysis data.
Definition: transport_TransportAnalysisData.h:41
Contains the results of analyzing send and receive packets, and parameters indicating the quality of ...
Definition: transport_TransportAnalysisData.h:37
struct PacketAnalysisData recvPacketAnalysisData
Receiver packet analysis data.
Definition: transport_TransportAnalysisData.h:40