Navigation
API > API/Runtime > API/Runtime/Engine
A Network traffic analyzer that keeps track of useful information including the RTT and uplink bandwidth of the latest received packet to help the congestion control module work. It uses seq and ack mechanism to track packet and use timestamp and packet size to calculate RTT and bandwidth.
| Name | FNetworkTrafficAnalyzer |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Net/TrafficControl.h |
| Include Path | #include "Net/TrafficControl.h" |
Syntax
class FNetworkTrafficAnalyzer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FNetworkTrafficAnalyzer
(
FNetworkCongestionControl* InTrafficControlModule |
Net/TrafficControl.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| SeqT | TSequenceNumber< 8, uint8 > | Net/TrafficControl.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bInitialized | bool | Net/TrafficControl.h | ||
| BytesInFlight | uint32 | Number of unacked bytes which is the sum of all packet size in the OutPacketRecords. | Net/TrafficControl.h | |
| LatestRTT | double | Net/TrafficControl.h | ||
| LatestUplinkBandwidth | double | Net/TrafficControl.h | ||
| OutAckedSeq | SeqT | Net/TrafficControl.h | ||
| OutPacketRecords | TResizableCircularQueue< FSeqSample > | Circular queue that keeps track of useful data of all unacked packets. | Net/TrafficControl.h | |
| OutSeq | SeqT | Net/TrafficControl.h | ||
| TrafficControlModule | FNetworkCongestionControl * | Net/TrafficControl.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
uint32 GetBytesInFlight() |
Net/TrafficControl.h | ||
double GetLatestRTT() |
Net/TrafficControl.h | ||
uint32 GetPacketsInFlight() |
Net/TrafficControl.h | ||
void OnAck
(
const FAckSample& AckSample |
Net/TrafficControl.h | ||
void OnSend
(
const FSeqSample& SeqSample |
Net/TrafficControl.h |