MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / m_sendData

Method m_sendData

src/osvr/Connection/AsyncDeviceToken.cpp:105–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 }
104
105 void AsyncDeviceToken::m_sendData(util::time::TimeValue const &timestamp,
106 MessageType *type, const char *bytestream,
107 size_t len) {
108 OSVR_DEV_VERBOSE("AsyncDeviceToken::m_sendData\t"
109 "about to create RTS object");
110 RequestToSend rts(m_accessControl);
111
112 bool clear = rts.request();
113 if (!clear) {
114 OSVR_DEV_VERBOSE("AsyncDeviceToken::m_sendData\t"
115 "RTS request responded with not clear to send.");
116 return;
117 }
118
119 OSVR_DEV_VERBOSE("AsyncDeviceToken::m_sendData\t"
120 "Have CTS!");
121 m_getConnectionDevice()->sendData(timestamp, type, bytestream, len);
122 OSVR_DEV_VERBOSE("AsyncDeviceToken::m_sendData\t"
123 "done!");
124 }
125
126 class AsyncSendGuard : public util::GuardInterface {
127 public:

Callers

nothing calls this directly

Calls 2

requestMethod · 0.80
sendDataMethod · 0.45

Tested by

no test coverage detected