O2 2.0
A communication protocol for interactive music and media applications.
Public Attributes | List of all members
O2msg_data Struct Reference

data part of an O2 message More...

#include <o2.h>

Public Attributes

int32_t length
 
int32_t misc
 
O2time timestamp
 the message delivery time (0 for immediate)
 
char address [4]
 the message address string More...
 

Detailed Description

data part of an O2 message

This data type is used to pass o2 message data to message handlers. It appears many other times in the code. You should NEVER allocate or free an O2msg_data struct. Instead, create a message using o2_send_start, o2_add_*(), and o2_message_finish to get an O2message_ptr. Within the O2message, the data field is an O2msg_data structure. We would use O2message everywhere instead of O2msg_data, but bundles can contain multiple O2msg_data structures without the extra baggage contained in an O2message.

Member Data Documentation

◆ address

char O2msg_data::address[4]

the message address string

Although this field is declared as 4 bytes, actual messages have variable length, and the address is followed by a string of type codes and the actual parameters. The length of the entire message including flags and timestamp, not including the length field itself is given by the length field.


The documentation for this struct was generated from the following file: