MCPcopy Create free account
hub / github.com/comaps/comaps / Send

Method Send

libs/tracking/connection.cpp:61–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61bool Connection::Send(boost::circular_buffer<DataPoint> const & points)
62{
63 if (!m_socket)
64 return false;
65
66 auto packet = Protocol::CreateDataPacket(points, tracking::Protocol::PacketType::CurrentData);
67 return m_socket->Write(packet.data(), static_cast<uint32_t>(packet.size()));
68}
69} // namespace tracking

Callers 1

SendPointsMethod · 0.80

Calls 3

WriteMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected