Vuo  0.5.2
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
VuoTelemetry.c File Reference

Description

VuoTelemetry implementation.

Functions

char * vuoCopyStringFromMessage (zmq_msg_t *message)
 Copies the message data into a newly allocated string.
 
void vuoInitMessageWithString (zmq_msg_t *message, const char *string)
 Copies the string (including null terminator) into the message data.
 
void vuoInitMessageWithBool (zmq_msg_t *message, bool value)
 Copies the bool value into the message data.
 
char * vuoReceiveAndCopyString (void *socket)
 Receives the next message on the socket and copies it into a newly allocated string.
 
void vuoReceiveBlocking (void *socket, void *data, size_t dataSize)
 Helper for vuoReceiveInt() and vuoReceiveUnsignedLong().
 
unsigned long vuoReceiveUnsignedLong (void *socket)
 Receives the next message on the socket and copies it into an unsigned long.
 
int vuoReceiveInt (void *socket)
 Receives the next message on the socket and copies it into an int.
 
bool vuoReceiveBool (void *socket)
 Receives the next message on the socket and copies it into a bool.
 
void vuoSend (const char *name, void *socket, int type, zmq_msg_t *messages, unsigned int messageCount, bool isNonBlocking)
 Sends the multipart message messages on ZMQ socket socket.
 
void vuoMemoryBarrier (void)
 "Individual ØMQ sockets are not thread safe except in the case where full memory barriers are issued when migrating a socket from one thread to another.
 

Function Documentation

char* vuoCopyStringFromMessage ( zmq_msg_t *  message)

Copies the message data into a newly allocated string.

Assumes the message data includes a null terminator.

void vuoInitMessageWithBool ( zmq_msg_t *  message,
bool  value 
)

Copies the bool value into the message data.

void vuoInitMessageWithString ( zmq_msg_t *  message,
const char *  string 
)

Copies the string (including null terminator) into the message data.

void vuoMemoryBarrier ( void  )

"Individual ØMQ sockets are not thread safe except in the case where full memory barriers are issued when migrating a socket from one thread to another.

"

http://api.zeromq.org/2-2:zmq http://stackoverflow.com/questions/5841896/0mq-how-to-use-zeromq-in-a-threadsafe-manner https://b33p.net/kosada/node/4226

char* vuoReceiveAndCopyString ( void *  socket)

Receives the next message on the socket and copies it into a newly allocated string.

void vuoReceiveBlocking ( void *  socket,
void *  data,
size_t  dataSize 
)
bool vuoReceiveBool ( void *  socket)

Receives the next message on the socket and copies it into a bool.

int vuoReceiveInt ( void *  socket)

Receives the next message on the socket and copies it into an int.

unsigned long vuoReceiveUnsignedLong ( void *  socket)

Receives the next message on the socket and copies it into an unsigned long.

void vuoSend ( const char *  name,
void *  socket,
int  type,
zmq_msg_t *  messages,
unsigned int  messageCount,
bool  isNonBlocking 
)

Sends the multipart message messages on ZMQ socket socket.

name is just used for printing error messages.