Merge branch '3.0.1' into developer

This commit is contained in:
Dhanya Maliakal
2017-11-21 14:15:59 +01:00
2 changed files with 18 additions and 1 deletions

View File

@ -184,6 +184,12 @@ class UDPStandardImplementation: private virtual slsReceiverDefs, public UDPBase
*/ */
void closeFiles(); void closeFiles();
/**
* Set streaming port and restart sockets if streaming was enabled
* @param i streaming port
*/
void setStreamingPort(const uint32_t i);
private: private:

View File

@ -206,7 +206,7 @@ int UDPStandardImplementation::setFrameToGuiFrequency(const uint32_t freq) {
} }
int UDPStandardImplementation::setDataStreamEnable(const bool enable) {\ int UDPStandardImplementation::setDataStreamEnable(const bool enable) {
if (dataStreamEnable != enable) { if (dataStreamEnable != enable) {
dataStreamEnable = enable; dataStreamEnable = enable;
@ -604,6 +604,17 @@ void UDPStandardImplementation::closeFiles() {
} }
void UDPStandardImplementation::setStreamingPort(const uint32_t i) {
streamingPort = i;
FILE_LOG(logINFO) << "Streaming Port: " << streamingPort;
if (dataStreamEnable) {
setDataStreamEnable(false);
setDataStreamEnable(true);
}
}
void UDPStandardImplementation::SetLocalNetworkParameters() { void UDPStandardImplementation::SetLocalNetworkParameters() {
//to increase socket receiver buffer size and max length of input queue by changing kernel settings //to increase socket receiver buffer size and max length of input queue by changing kernel settings