29 char buf[
sizeof(vrpn_float32)];
31 vrpn_int32 bufLen =
sizeof(vrpn_float32);
Generic connection class not specific to the transport mechanism.
virtual vrpn_int32 register_message_type(const char *name)
virtual int pack_message(vrpn_uint32 len, struct timeval time, vrpn_int32 type, vrpn_int32 sender, const char *buffer, vrpn_uint32 class_of_service)
Pack a message that will be sent the next time mainloop() is called. Turn off the RELIABLE flag if yo...
virtual vrpn_int32 register_sender(const char *name)
Get a token to use for the string name of the sender or type. Remember to check for -1 meaning failur...
vrpn_int32 d_set_replay_rate_type
void set_replay_rate(vrpn_float32=1.0)
vrpn_int32 d_play_to_time_type
vrpn_File_Controller(vrpn_Connection *)
~vrpn_File_Controller(void)
vrpn_Connection * d_connection
void play_to_time(struct timeval t)
const vrpn_uint32 vrpn_CONNECTION_RELIABLE
Classes of service for messages, specify multiple by ORing them together Priority of satisfying these...
VRPN_API int vrpn_buffer(char **insertPt, vrpn_int32 *buflen, const timeval t)
Utility routine for placing a timeval struct into a buffer that is to be sent as a message.
#define vrpn_gettimeofday