Top |
The MMBearerStats is an object handling the statistics reported by the bearer object during a connection.
This object is retrieved with either mm_bearer_get_stats()
or
mm_bearer_peek_stats()
.
guint
mm_bearer_stats_get_duration (MMBearerStats *self
);
Gets the duration of the current connection, in seconds.
Since: 1.6
guint64
mm_bearer_stats_get_start_date (MMBearerStats *self
);
Gets the start date of the current connection as a timestamp in seconds since the epoch.
Since: 1.20
guint64
mm_bearer_stats_get_rx_bytes (MMBearerStats *self
);
Gets the number of bytes received without error in the connection.
Since: 1.6
guint64
mm_bearer_stats_get_tx_bytes (MMBearerStats *self
);
Gets the number of bytes transmitted without error in the connection.
Since: 1.6
guint
mm_bearer_stats_get_attempts (MMBearerStats *self
);
Gets the number of connection attempts done with this bearer.
Since: 1.14
guint
mm_bearer_stats_get_failed_attempts (MMBearerStats *self
);
Gets the number of failed connection attempts done with this bearer.
Since: 1.14
guint
mm_bearer_stats_get_total_duration (MMBearerStats *self
);
Gets the total duration of all the connections of this bearer.
Since: 1.14
guint64
mm_bearer_stats_get_total_rx_bytes (MMBearerStats *self
);
Gets the total number of bytes received without error during all the connections of this bearer.
Since: 1.14
guint64
mm_bearer_stats_get_total_tx_bytes (MMBearerStats *self
);
Gets the total number of bytes transmitted without error during all the connections of this bearer.
Since: 1.14
guint64
mm_bearer_stats_get_uplink_speed (MMBearerStats *self
);
Gets the speed of the uplink, in bits per second.
Since: 1.20
guint64
mm_bearer_stats_get_downlink_speed (MMBearerStats *self
);
Gets the speed of the downlink, in bits per second.
Since: 1.20
struct MMBearerStats;
The MMBearerStats structure contains private data and should only be accessed using the provided API.