#include <vrpn_Clock.h>
Class diagram for vrpn_Clock:

Public Members | |||
![]() | ![]() | vrpn_Clock (const char *name, vrpn_Connection *c = NULL) | |
Protected Members | |||
![]() | ![]() | virtual int | register_senders (void) |
![]() | ![]() | Register the sender for this device (by default, the name of the device). Return 0 on success, -1 on fail. More... | |
![]() | ![]() | virtual int | register_types (void) |
![]() | ![]() | Register the types of messages this device sends/receives. Return 0 on success, -1 on fail. | |
![]() | ![]() | virtual int | encode_to (char *buf, const struct timeval& tvSRep, const struct timeval& tvCReq, vrpn_int32 cChars, const char* pch) |
![]() | ![]() | Packs time of message sent and all data sent to it back into buffer. More... | |
![]() | ![]() | vrpn_int32 | queryMsg_id |
![]() | ![]() | vrpn_int32 | replyMsg_id |
| vrpn_Clock::vrpn_Clock (const char * name, vrpn_Connection * c = NULL) |
int vrpn_Clock::register_senders (void) [protected, virtual]
|
Register the sender for this device (by default, the name of the device). Return 0 on success, -1 on fail.
@" sign). For example, the sender for Tracker0@mumble.cs.unc.edu is Tracker0. Both the remote device and the server device will register the same sender. If for some reason, there is a different sender or more than one sender, this function should be overridden by both the remote and server objects.
This routine returns 0 on success and -1 on failure.
Reimplemented from vrpn_BaseClass.
int vrpn_Clock::register_types (void) [protected, virtual]
|
Register the types of messages this device sends/receives. Return 0 on success, -1 on fail.
Reimplemented from vrpn_BaseClass.
int vrpn_Clock::encode_to (char * buf, const struct timeval & tvSRep, const struct timeval & tvCReq, vrpn_int32 cChars, const char * pch) [protected, virtual]
|
Packs time of message sent and all data sent to it back into buffer.
buf is outgoing buffer, tvSRep is current time, tvCReq is the time that the just-received message had in it, cChars is the length of the old message payload, and pch is a pointer to the old payload. When encoding the old payload, the first vrpn_int32 in the payload is skipped (it is the version number).
Returns the number of characters encoded total.
vrpn_int32 vrpn_Clock::queryMsg_id [protected]
|
vrpn_int32 vrpn_Clock::replyMsg_id [protected]
|
1.0.0 written by Dimitri van Heesch,
© 1997-1999