Description
The InBytesPerSecond
property of the ConnectionStats
struct provides the rate at which data is being received from a network connection, measured in bytes per second. This property is useful for monitoring the incoming data flow and assessing the performance of the network connection.
Usage
To access the InBytesPerSecond
property, you need an instance of the ConnectionStats
struct. This property is read-only and provides a float
value representing the current rate of incoming data in bytes per second.
Example
// Example of accessing the InBytesPerSecond property
// Assume 'connectionStats' is an instance of ConnectionStats
float incomingDataRate = connectionStats.InBytesPerSecond;
// Use the incoming data rate for monitoring or logging
if (incomingDataRate > 1000.0f)
{
// Perform actions based on high incoming data rate
// For example, log a warning or adjust network settings
}