formatting

This commit is contained in:
2024-10-01 14:44:59 +02:00
parent fd010b9aa5
commit e59de85a33
8 changed files with 13 additions and 15 deletions

View File

@ -805,7 +805,8 @@ void Implementation::stopReceiver() {
}
TLogLevel lev = ((mp[i]) > 0) ? logINFORED : logINFOGREEN;
LOG(lev) << "Summary of Port " << udpPortNum[i] << " (" << eth[i] << ')' << summary;
LOG(lev) << "Summary of Port " << udpPortNum[i] << " (" << eth[i]
<< ')' << summary;
}
// callback

View File

@ -149,13 +149,15 @@ void Listener::CreateUDPSocket(int &actualSize) {
packetSize = generalData->vetoPacketSize;
}
std::string ip = (eth.length() ? InterfaceNameToIp(eth).str().c_str() : "");
std::string ip =
(eth.length() ? InterfaceNameToIp(eth).str().c_str() : "");
udpSocket = nullptr;
udpSocket = make_unique<UdpRxSocket>(
udpPortNumber, packetSize, (ip.length() ? ip.c_str() : nullptr),
generalData->udpSocketBufferSize);
LOG(logINFO) << index << ": UDP port opened at port " << udpPortNumber << " (" << (ip.length() ? ip : "any") << ')';
LOG(logINFO) << index << ": UDP port opened at port " << udpPortNumber
<< " (" << (ip.length() ? ip : "any") << ')';
udpSocketAlive = true;