Skip to main content

odin_room_get_connection_stats

enum OdinError odin_room_get_connection_stats(struct OdinRoom *room,
struct OdinConnectionStats *out_stats);

Overview

Retrieves detailed connection statistics for the specified room, filling the provided structure with data such as the number of transmitted/received datagrams, bytes, packet loss percentage, congestion window information and round-trip time.

Parameters

NameTypeDescription
roomstruct OdinRoom *The room handle.
out_statsstruct OdinConnectionStats *Pointer to the structure to receive statistics.

Return Value

TypeDescription
OdinErrorODIN_ERROR_SUCCESS on success.