fixed conversion for IpAddr

This commit is contained in:
Erik Frojdh
2020-01-16 16:31:11 +01:00
parent f3598c1f39
commit c1fac7cdb7
5 changed files with 12 additions and 12 deletions

View File

@ -320,7 +320,7 @@ int ClientInterface::send_update(Interface &socket) {
int64_t i64 = -1;
char cstring[MAX_STR_LENGTH]{};
sls::IpAddr ip = 0u;
sls::IpAddr ip;
ip = server->getLastClient();
n += socket.Send(&ip, sizeof(ip));
@ -920,7 +920,7 @@ int ClientInterface::set_streaming_port(Interface &socket) {
}
int ClientInterface::set_streaming_source_ip(Interface &socket) {
sls::IpAddr arg = 0u;
sls::IpAddr arg;
socket.Receive(arg);
verifyIdle(socket);
FILE_LOG(logDEBUG1) << "Setting streaming source ip:" << arg;

View File

@ -90,7 +90,7 @@ void Implementation::InitializeMembers() {
streamingFrequency = 1;
streamingTimerInMs = DEFAULT_STREAMING_TIMER_IN_MS;
streamingPort = 0;
streamingSrcIP = 0u;
streamingSrcIP = sls::IpAddr{};
additionalJsonHeader = "";
// detector parameters