Skip to main content

OdinEvent_PeerJoinedData

Data structure for the OdinEvent_PeerJoined event.

Declaration
typedef struct OdinEvent_PeerJoinedData {
uint64_t peer_id;
const uint8_t *peer_user_data;
size_t peer_user_data_len;
const char *user_id;
size_t user_id_len;
} OdinEvent_PeerJoinedData;

Fields

peer_id

ID of the peer that joined the room.

Declaration
uint64_t peer_id;

peer_user_data

Byte array with arbitrary user data of the peer.

Declaration
const uint8_t *peer_user_data;

peer_user_data_len

Length of the peer user data array.

Declaration
size_t peer_user_data_len;

user_id

User identifier of the peer specified during authentication (null-terminated).

Declaration
const char *user_id;

user_id_len

Length of the user identifier.

Declaration
size_t user_id_len;