Real Time Open Sound Control librtosc
|
ThreadLink - A simple wrapper around jack's ringbuffers desinged to make sending messages via rt-osc trivial. More...
#include <thread-link.h>
Public Member Functions | |
ThreadLink (size_t max_message_length, size_t max_messages) | |
void | write (const char *dest, const char *args,...) |
Write message to ringbuffer. More... | |
void | writeArray (const char *dest, const char *args, const rtosc_arg_t *aargs) |
Write an arary of arguments to ringbuffer. More... | |
void | raw_write (const char *msg) |
Directly write message to ringbuffer. | |
bool | hasNext (void) const |
msg_t | read (void) |
Read a new message from the ringbuffer. | |
msg_t | peak (void) const |
Peak at last message read without reading another. | |
char * | buffer (void) |
Raw write buffer access for more complicated task. | |
size_t | buffer_size (void) const |
Access to write buffer length. | |
ThreadLink - A simple wrapper around jack's ringbuffers desinged to make sending messages via rt-osc trivial.
This class provides the basics of reading and writing events via fixed sized buffers, which can be specified at compile time.
bool rtosc::ThreadLink::hasNext | ( | void | ) | const |
void rtosc::ThreadLink::write | ( | const char * | dest, |
const char * | args, | ||
... | |||
) |
Write message to ringbuffer.
void rtosc::ThreadLink::writeArray | ( | const char * | dest, |
const char * | args, | ||
const rtosc_arg_t * | aargs | ||
) |
Write an arary of arguments to ringbuffer.