works zmq separated for client and rx, ports and ip included in expert advanced mode

This commit is contained in:
Dhanya Maliakal
2017-11-17 17:39:04 +01:00
4 changed files with 95 additions and 41 deletions

View File

@ -5784,7 +5784,7 @@ int multiSlsDetector::createReceivingDataSockets(const bool destroy){
sscanf(detectors[i/numSocketsPerDetector]->getClientStreamingPort().c_str(),"%d",&portnum);
portnum += (i%numSocketsPerDetector);
zmqSocket[i] = new ZmqSocket(detectors[i/numSocketsPerDetector]->getReceiver().c_str(), portnum);
zmqSocket[i] = new ZmqSocket(detectors[i/numSocketsPerDetector]->getClientStreamingIP().c_str(), portnum);
if (zmqSocket[i]->IsError()) {
cprintf(RED, "Error: Could not create Zmq socket on port %d\n", portnum);
createReceivingDataSockets(true);
@ -5903,8 +5903,6 @@ void multiSlsDetector::readFrameFromReceiver(){
if (jungfrau)
multiframegain = new char[multidatabytes]();
int nch;
bool runningList[numSockets];
int numRunning = 0;