float OutBytesPerSecond { get; set; }

robot_2Generated
code_blocksInput

Description

The OutBytesPerSecond property provides the rate at which data is being sent from the current connection, measured in bytes per second. This property is useful for monitoring the outgoing data flow and ensuring that the connection is performing as expected.

Usage

To access the OutBytesPerSecond property, you need an instance of the ConnectionStats struct. This property is read-only and provides a float value representing the current outgoing data rate.

Example

// Example of accessing the OutBytesPerSecond property

// Assume 'connectionStats' is an instance of ConnectionStats
float outgoingBytesPerSecond = connectionStats.OutBytesPerSecond;

// Use the value to monitor or log the outgoing data rate
if (outgoingBytesPerSecond > 1000.0f)
{
    // Perform some action if the outgoing rate is high
    Debug.Log("High outgoing data rate: " + outgoingBytesPerSecond + " bytes/second");
}