static int decode_text_message_from_buffer(char *msg, vrpn_TEXT_SEVERITY *severity, vrpn_uint32 *level, const char *buf)
Decodes the body of the text message from a buffer from the connection.
int register_autodeleted_handler(vrpn_int32 type, vrpn_MESSAGEHANDLER handler, void *userdata, vrpn_int32 sender=vrpn_ANY_SENDER)
Registers a handler with the connection, and remembers to delete at destruction.
vrpn_Text_Receiver(const char *name, vrpn_Connection *c=NULL)
static int VRPN_CALLBACK handle_message(void *userdata, vrpn_HANDLERPARAM p)
Allows a user to handle text messages directly, in addition too having the.
int send_message(const char *msg, vrpn_TEXT_SEVERITY type=vrpn_TEXT_NORMAL, vrpn_uint32 level=0, const struct timeval time=vrpn_TEXT_NOW)
Send a text message.
virtual ~vrpn_Text_Receiver(void)
Structure passed back to user-level code from a vrpn_Text_Receiver.
int send_text_message(const char *msg, struct timeval timestamp, vrpn_TEXT_SEVERITY type=vrpn_TEXT_NORMAL, vrpn_uint32 level=0)
Sends a NULL-terminated text message from the device d_sender_id.
const struct timeval vrpn_TEXT_NOW
char message[vrpn_MAX_TEXT_LEN]
vrpn_Callback_List< vrpn_TEXTCB > d_callback_list