restream stop from receiver

This commit is contained in:
Dhanya Maliakal
2017-11-30 18:39:08 +01:00
parent b75985088d
commit 70bf6eb4cb
10 changed files with 105 additions and 0 deletions

View File

@ -571,6 +571,21 @@ void UDPStandardImplementation::closeFiles() {
}
int UDPStandardImplementation::restreamStop() {
bool ret = OK;
for (vector<DataStreamer*>::const_iterator it = dataStreamer.begin(); it != dataStreamer.end(); ++it) {
if ((*it)->restreamStop() == FAIL)
ret = FAIL;
}
// if fail, prints in datastreamer
if (ret == OK) {
FILE_LOG(logINFO) << "Restreaming Dummy Header via ZMQ successful";
}
return ret;
}
void UDPStandardImplementation::SetLocalNetworkParameters() {
//to increase socket receiver buffer size and max length of input queue by changing kernel settings