MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / sendMessage

Method sendMessage

pj_widgets/src/RasterStreamView.cpp:114–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114void RasterStreamView::sendMessage(const pj_raster::Message& msg) {
115 if (socket_ == nullptr) {
116 return;
117 }
118 uint8_t bytes[pj_raster::kMessageBytes];
119 pj_raster::encodeMessage(msg, bytes);
120 socket_->write(reinterpret_cast<char*>(bytes), pj_raster::kMessageBytes);
121 socket_->flush();
122}
123
124void RasterStreamView::sendKey(int qt_key, bool down) {
125 const int code = key_translator_(qt_key);

Callers

nothing calls this directly

Calls 2

encodeMessageFunction · 0.85
flushMethod · 0.45

Tested by

no test coverage detected