mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-06 10:00:40 +02:00
looks done
This commit is contained in:
parent
09e8bf4144
commit
65acd118c5
@ -1665,7 +1665,7 @@ void UDPStandardImplementation::startDataCallback(){
|
||||
char hostName[100] = "tcp://127.0.0.1:";
|
||||
int portno = DEFAULT_ZMQ_PORTNO + (detID*2+ithread);
|
||||
sprintf(hostName,"%s%d",hostName,portno);
|
||||
FILE_LOG(logINFO) << "Thread" << ithread << ": ZMQ Server at " << hostName;
|
||||
|
||||
|
||||
|
||||
int headersize=0;
|
||||
@ -1700,6 +1700,7 @@ void UDPStandardImplementation::startDataCallback(){
|
||||
int val = -1;
|
||||
zmq_setsockopt(zmqsocket, ZMQ_LINGER, &val,sizeof(val)); // wait for the unsent packets before closing socket
|
||||
zmq_bind(zmqsocket,hostName); // bind
|
||||
FILE_LOG(logINFO) << "Thread" << ithread << ": ZMQ Server at " << hostName;
|
||||
|
||||
//let calling function know thread started and obtained current (after sockets created)
|
||||
if(!zmqThreadStarted)
|
||||
|
Loading…
x
Reference in New Issue
Block a user