|
@@ -193,12 +193,7 @@ void PlugIn::OnRadarTargetPositionUpdate(EuroScopePlugIn::CRadarTarget radarTarg
|
|
|
report.set_allocated_dynamics(dynamics);
|
|
|
report.set_allocated_position(coordinate);
|
|
|
|
|
|
- /* serialize the report */
|
|
|
- std::string serialized = report.SerializeAsString();
|
|
|
- zmq::message_t message(serialized.size());
|
|
|
- std::memcpy(message.data(), serialized.c_str(), serialized.size());
|
|
|
-
|
|
|
/* send the report */
|
|
|
- if (false == AircraftReporter::instance().send(message))
|
|
|
+ if (false == AircraftReporter::instance().send(report))
|
|
|
this->DisplayUserMessage(PLUGIN_NAME, "ERROR", ("Unable to send a report for " + aircraft->callsign()).c_str(), true, true, true, true, true);
|
|
|
}
|