CTR Pia  4.11.3
Game Communication Engine
nn::pia::transport::PacketAnalysisData Struct Reference

Stores information required for tabulating the results of an analysis of the data in sent and received packets. More...

Classes

struct  Entry
 Contains information required for tabulating analysis results for each ProtocolId. More...
 

Public Member Functions

void ClearCounters ()
 Clears the totalNum, totalDataSize, passedMilliSec, totalPacketNum, and totalPacketSize members.
 
void ClearExceptName ()
 Clears all members except name.
 
void Print (bool bDetail) const
 Prints the data. More...
 
void Trace (u64 flag) const
 Prints information that is useful for debugging. More...
 

Public Attributes

struct Entry entry [MAX_ENTRIES]
 Specifies an array of entries.
 
char name [MAX_NAME_LEN]
 Specifies the name to attach to the instance. The string must be terminated with \0.
 
size_t nowEntryNum
 Specifies the current number of entries.
 
s32 passedMilliSec
 Specifies the elapsed time, in milliseconds, since the execution of the PiaTransport startup process.
 
size_t sumTotalPacketNum
 Specifies the number of packets counted since analysis started. This value is not cleared by the ClearCounters function.
 
u64 sumTotalPacketSize
 Specifies the total size of the packets counted since analysis started. This value is not cleared by the ClearCounters function.
 
size_t totalPacketNum
 Specifies the number of packets analyzed.
 
size_t totalPacketSize
 Specifies the total size of the packets analyzed.
 

Static Public Attributes

static const size_t MAX_ENTRIES = 32
 Specifies the maximum entries.
 
static const size_t MAX_NAME_LEN = 32
 Specifies the longest name that can be assigned to this object.
 

Detailed Description

Stores information required for tabulating the results of an analysis of the data in sent and received packets.


Revision History:

2013-12-10 Corrected an inaccurate description of passedMilliSec.

2013-12-02 The increases in the number of sent packets, sent protocol messages, and sent data due to multicasting are now also included in the calculation.

2013-11-21 The total packet size is now calculated using the size of packets in the network layer (for example, packets that include IPv4 or UDP headers).

2013-11-14 Added a member variable that maintains the count from the point at which measurement starts.

2013-10-17 Revised specifications.

2013-10-15 Initial version.

Member Function Documentation

void nn::pia::transport::PacketAnalysisData::Print ( bool  bDetail) const

Prints the data.

Parameters
[in]bDetailSpecify true to get verbose output.
void nn::pia::transport::PacketAnalysisData::Trace ( u64  flag) const

Prints information that is useful for debugging.

Parameters
[in]flagSpecifies the bitwise OR of trace flags. For more information, see the TraceFlag type.