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 returns 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 incomingRate = connectionStats.InBytesPerSecond;
// Output the incoming data rate
// Note: Replace with appropriate logging or display method
// e.g., Log.Info($"Incoming data rate: {incomingRate} bytes/second");