CTR Pia  4.11.3
Game Communication Engine
nn::pia::transport::SequenceIdController Class Reference

Manages the sequence ID of the packet. In conjunction with this, includes a profiling feature for packet loss. More...

+ Inheritance diagram for nn::pia::transport::SequenceIdController:

Public Member Functions

u16 GetProfiledMulticastPacketNum () const
 Gets the number of multicast packets profiled. This function is thread-safe. More...
 
u16 GetProfiledPacketLossNum () const
 Gets the number of profiled packet losses. This function is thread-safe. More...
 
u16 GetProfiledTotalPacketNum () const
 Gets the total number of profiled packets. This function is thread-safe. More...
 
void StartProfile ()
 Starts profiling.
 
void StopProfile ()
 Stops profiling.
 
virtual void Trace (u64 flag) const
 Prints information that is useful for debugging. More...
 

Detailed Description

Manages the sequence ID of the packet. In conjunction with this, includes a profiling feature for packet loss.


Revision History:

2013-03-25 Removed the GetProfiledToAllPacketNum function and added the GetProfiledMulticastPacketNum function.

2012-06-28 Clearly indicated which functions are thread-safe.

2012-06-21 Made the constructor and destructor private.

2012-04-19 Made it possible to count the packets addressed to STATION_INDEX_ALL.

2012-04-06 Initial version.

Member Function Documentation

u16 nn::pia::transport::SequenceIdController::GetProfiledMulticastPacketNum ( ) const
inline

Gets the number of multicast packets profiled. This function is thread-safe.

Returns
The number of multicast packets profiled.
u16 nn::pia::transport::SequenceIdController::GetProfiledPacketLossNum ( ) const
inline

Gets the number of profiled packet losses. This function is thread-safe.

Returns
The number of profiled packet losses.
u16 nn::pia::transport::SequenceIdController::GetProfiledTotalPacketNum ( ) const
inline

Gets the total number of profiled packets. This function is thread-safe.

Returns
The total number of profiled packets.
virtual void nn::pia::transport::SequenceIdController::Trace ( u64  flag) const
virtual

Prints information that is useful for debugging.

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