changin zmqip in rxr should also restart streaming

This commit is contained in:
Dhanya Maliakal 2017-11-21 15:11:29 +01:00
parent a0ad1fb3a3
commit 5d34358f44
2 changed files with 15 additions and 0 deletions

View File

@ -190,6 +190,12 @@ class UDPStandardImplementation: private virtual slsReceiverDefs, public UDPBase
*/
void setStreamingPort(const uint32_t i);
/**
* Set streaming source ip and restart sockets if streaming was enabled
* @param c streaming source ip
*/
void setStreamingSourceIP(const char* c);
private:

View File

@ -614,6 +614,15 @@ void UDPStandardImplementation::setStreamingPort(const uint32_t i) {
}
}
void UDPStandardImplementation::setStreamingSourceIP(const char c[]){
strcpy(streamingSrcIP, c);
FILE_LOG(logINFO) << "Streaming Source IP: " << streamingSrcIP;
if (dataStreamEnable) {
setDataStreamEnable(false);
setDataStreamEnable(true);
}
}
void UDPStandardImplementation::SetLocalNetworkParameters() {