mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-05 17:40:40 +02:00
zmqip fix to restart reciever streaming form command line, fix to not have sls_receiver_defs in zmqSocket.h incldue
This commit is contained in:
parent
6a41b5ce3a
commit
7c1423d654
@ -5968,7 +5968,7 @@ void multiSlsDetector::readFrameFromReceiver(){
|
||||
else {
|
||||
thisData = new detectorData(NULL,NULL,NULL,getCurrentProgress(),currentFileName.c_str(),maxX,maxY,multiframe, multidatabytes, dr, currentFileIndex);
|
||||
}
|
||||
dataReady(thisData, currentFrameIndex, currentSubFrameIndex, pCallbackArg);
|
||||
dataReady(thisData, currentFrameIndex, (((dr == 32) && (eiger)) ? currentSubFrameIndex : -1), pCallbackArg);
|
||||
delete thisData;
|
||||
//cout<<"Send frame #"<< currentFrameIndex << " to gui"<<endl;
|
||||
|
||||
|
@ -3977,13 +3977,16 @@ string slsDetectorCommand::cmdNetworkParameter(int narg, char *args[], int actio
|
||||
t=CLIENT_STREAMING_SRC_IP;
|
||||
}else if (cmd=="rx_zmqip") {
|
||||
t=RECEIVER_STREAMING_SRC_IP;
|
||||
// if streaming, switch it off
|
||||
prev_streaming = myDet->enableDataStreamingFromReceiver();
|
||||
if (prev_streaming) myDet->enableDataStreamingFromReceiver(0);
|
||||
}
|
||||
else return ("unknown network parameter")+cmd;
|
||||
|
||||
if (action==PUT_ACTION) {
|
||||
myDet->setNetworkParameter(t, args[1]);
|
||||
// switch it back on, if it had been switched on
|
||||
if (prev_streaming && t == RECEIVER_STREAMING_PORT)
|
||||
if (prev_streaming && (t == RECEIVER_STREAMING_PORT || t == RECEIVER_STREAMING_SRC_IP))
|
||||
myDet->enableDataStreamingFromReceiver(1);
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user