25 #ifndef INCLUDED_VrpnBaseFlexServer_h_GUID_BA2E66A9_F0F3_4BBE_5248_62C5B7E5CBDE 26 #define INCLUDED_VrpnBaseFlexServer_h_GUID_BA2E66A9_F0F3_4BBE_5248_62C5B7E5CBDE 31 #include <osvr/Util/Verbosity.h> 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) {
68 util::time::toStructTimeval(now, timestamp);
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.
Definition: VrpnBaseFlexServer.h:43
Class used as an interface for underlying devices that can have device components (corresponding to i...
Definition: BaseDevice.h:51
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
virtual void m_update()
Implementation-specific update (call client_mainloop() or server_mainloop() in it!) ...
Definition: VrpnBaseFlexServer.h:75
Definition: DeviceConstructionData.h:41
OSVR_COMMON_EXPORT void m_setup(vrpn_ConnectionPtr conn, RawSenderType sender, std::string const &name)
Should be called by derived class to set the connection, etc.
Definition: BaseDevice.cpp:106
OSVR_COMMON_EXPORT void update()
Called from the outside to run the mainloop on the device and its components.
Definition: BaseDevice.cpp:79
Header providing a C++ wrapper around TimeValueC.h.
Standardized, portable parallel to struct timeval for representing both absolute times and time inter...
Definition: TimeValueC.h:81
Type-safe wrapper with built-in default for a VRPN "sender type" integer.
Definition: RawSenderType.h:45
virtual void mainloop()
Definition: VrpnBaseFlexServer.h:56