odin_room_send_message
Sends arbitrary data to a list of target peers over the ODIN server. If NULL
is specified, the message will be sent to
all other peers in the same room.
info
It's up to the application to define the format and content of the data being sent. Many applications use JSON or protobufs to serialize data.
Declaration
Parameters
room
Handle of the room to send the message in. See OdinRoomHandle
Declaration
peer_id_list
List of peer IDs to send the message to. If NULL
, the message will be sent to all other peers in the same room.
Declaration
peer_id_list_size
Number of peer IDs in the list.
Declaration
data
Byte array containing the data to be sent.
Declaration
data_length
Length of the data array.
Declaration
Returns
A return code indicating success or failure. See OdinReturnCode
Return Type