mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 00:00:02 +02:00
changing zmq rxr port should restart data streaming
This commit is contained in:
parent
a79864a5ae
commit
d00df32e49
@ -170,6 +170,12 @@ class UDPStandardImplementation: private virtual slsReceiverDefs, public UDPBase
|
||||
*/
|
||||
void closeFiles();
|
||||
|
||||
/**
|
||||
* Set streaming port and restart sockets if streaming was enabled
|
||||
* @param i streaming port
|
||||
*/
|
||||
void setStreamingPort(const uint32_t i);
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
@ -196,7 +196,7 @@ int UDPStandardImplementation::setFrameToGuiFrequency(const uint32_t freq) {
|
||||
}
|
||||
|
||||
|
||||
int UDPStandardImplementation::setDataStreamEnable(const bool enable) {\
|
||||
int UDPStandardImplementation::setDataStreamEnable(const bool enable) {
|
||||
|
||||
if (dataStreamEnable != enable) {
|
||||
dataStreamEnable = enable;
|
||||
@ -571,6 +571,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() {
|
||||
//to increase socket receiver buffer size and max length of input queue by changing kernel settings
|
||||
|
Loading…
x
Reference in New Issue
Block a user