struct Payload { unsigned long long epoch; // total second since 1. Jan. 1970 given // by time(time_t *) unsigned long long length; // Sampling clock * length of time (samples) unsigned long long offset; unsigned int clock; // Sampling clock (Hz) unsigned int bit_mask; // Bit Mask to get specific data in the 32bit }An example of C++ headder file is available.