vrpn
07.33
Virtual Reality Peripheral Network
|
Go to the documentation of this file.
23 unsigned char d_buffer[512];
26 struct timeval timestamp;
27 struct timeval d_last_poll;
29 virtual int reset(
void);
30 virtual int get_report(
void);
32 bool send_command(
unsigned char devicenum,
unsigned char cmd, vrpn_int32 data);
33 bool send_command(
unsigned char devnum,
unsigned char cmd,
unsigned char d0,
34 unsigned char d1,
unsigned char d2,
unsigned char d3);
35 vrpn_int32 convert_bytes_to_reading(
const unsigned char *buf);
virtual void report(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY, const struct timeval time=vrpn_ANALOG_NOW)
Send a report whether something has changed or not (for servers) Optionally, tell what time to stamp ...
const vrpn_uint32 vrpn_CONNECTION_RELIABLE
Classes of service for messages, specify multiple by ORing them together Priority of satisfying these...
This structure is what is passed to a vrpn_Connection message callback.
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
Generic connection class not specific to the transport mechanism.
unsigned d_expected_chars
virtual void report_changes(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY, const struct timeval time=vrpn_ANALOG_NOW)
Send a report only if something has changed (for servers) Optionally, tell what time to stamp the val...