|
|
|
@ -20,9 +20,9 @@
|
|
|
|
|
const std::string UdpTmTcBridge::DEFAULT_SERVER_PORT = tcpip::DEFAULT_SERVER_PORT;
|
|
|
|
|
|
|
|
|
|
UdpTmTcBridge::UdpTmTcBridge(object_id_t objectId, object_id_t tcDestination,
|
|
|
|
|
const std::string &udpServerPort_, object_id_t tmStoreId,
|
|
|
|
|
object_id_t tcStoreId)
|
|
|
|
|
: TmTcBridge("UDP TMTC Bridge", objectId, tcDestination, tmStoreId, tcStoreId) {
|
|
|
|
|
uint32_t msgQueueDepth, const std::string &udpServerPort_,
|
|
|
|
|
object_id_t tmStoreId, object_id_t tcStoreId)
|
|
|
|
|
: TmTcBridge("UDP TMTC Bridge", objectId, tcDestination, msgQueueDepth, tmStoreId, tcStoreId) {
|
|
|
|
|
if (udpServerPort_.empty()) {
|
|
|
|
|
udpServerPort = DEFAULT_SERVER_PORT;
|
|
|
|
|
} else {
|
|
|
|
@ -126,10 +126,7 @@ ReturnValue_t UdpTmTcBridge::sendTm(const uint8_t *data, size_t dataLen) {
|
|
|
|
|
tcpip::handleError(tcpip::Protocol::UDP, tcpip::ErrorSources::SENDTO_CALL);
|
|
|
|
|
}
|
|
|
|
|
#if FSFW_CPP_OSTREAM_ENABLED == 1 && FSFW_UDP_SEND_WIRETAPPING_ENABLED == 1
|
|
|
|
|
sif::debug << "TmTcUdpBridge::sendTm: " << bytesSent
|
|
|
|
|
<< " bytes were"
|
|
|
|
|
" sent."
|
|
|
|
|
<< std::endl;
|
|
|
|
|
sif::debug << "TmTcUdpBridge::sendTm: " << bytesSent << " bytes were sent" << std::endl;
|
|
|
|
|
#endif
|
|
|
|
|
return returnvalue::OK;
|
|
|
|
|
}
|
|
|
|
|