25 #ifndef INCLUDED_VrpnBaseFlexServer_h_GUID_BA2E66A9_F0F3_4BBE_5248_62C5B7E5CBDE
26 #define INCLUDED_VrpnBaseFlexServer_h_GUID_BA2E66A9_F0F3_4BBE_5248_62C5B7E5CBDE
35 #include <vrpn_BaseClass.h>
41 namespace connection {
47 : vrpn_BaseClass(init.getQualifiedName().c_str(), init.conn) {
48 vrpn_BaseClass::init();
49 init.flexServer =
this;
50 m_setup(vrpn_ConnectionPtr(init.conn),
52 init.getQualifiedName());
66 const char *bytestream,
size_t len) {
69 d_connection->pack_message(len, now, msgID, d_sender_id, bytestream,
70 vrpn_CONNECTION_LOW_LATENCY);
74 virtual int register_types() {
return 0; }
81 #endif // INCLUDED_VrpnBaseFlexServer_h_GUID_BA2E66A9_F0F3_4BBE_5248_62C5B7E5CBDE
Basic implementation of a vrpn_BaseClass server.
Class used as an interface for underlying devices that can have device components (corresponding to i...
void toStructTimeval(struct timeval &dest, TimeValue const &src)
Convert a TimeValue to a struct timeval.
virtual void m_update()
Implementation-specific update (call client_mainloop() or server_mainloop() in it!) ...
void m_setup(vrpn_ConnectionPtr conn, RawSenderType sender, std::string const &name)
Should be called by derived class to set the connection, etc.
void update()
Called from the outside to run the mainloop on the device and its components.
Header providing a C++ wrapper around TimeValueC.h.
Internal, configured header file for verbosity macros.
Standardized, portable parallel to struct timeval for representing both absolute times and time inter...
Type-safe wrapper with built-in default for a VRPN "sender type" integer.