mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-07 18:40:42 +02:00
WIP
This commit is contained in:
parent
83221ee955
commit
8727a93e3e
@ -228,7 +228,6 @@ class Implementation : private virtual slsDetectorDefs {
|
|||||||
|
|
||||||
// config parameters
|
// config parameters
|
||||||
int numThreads;
|
int numThreads;
|
||||||
const static int MAX_NUMBER_OF_LISTENING_THREADS = 2;
|
|
||||||
detectorType myDetectorType;
|
detectorType myDetectorType;
|
||||||
int numDet[MAX_DIMENSIONS];
|
int numDet[MAX_DIMENSIONS];
|
||||||
int detID;
|
int detID;
|
||||||
@ -255,7 +254,7 @@ class Implementation : private virtual slsDetectorDefs {
|
|||||||
// network configuration (UDP)
|
// network configuration (UDP)
|
||||||
int numUDPInterfaces;
|
int numUDPInterfaces;
|
||||||
std::vector <std::string> eth;
|
std::vector <std::string> eth;
|
||||||
uint32_t udpPortNum[MAX_NUMBER_OF_LISTENING_THREADS];
|
std::vector <uint32_t> udpPortNum;
|
||||||
int64_t udpSocketBufferSize;
|
int64_t udpSocketBufferSize;
|
||||||
int64_t actualUDPSocketBufferSize;
|
int64_t actualUDPSocketBufferSize;
|
||||||
|
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#define MAX_DIMENSIONS (2)
|
#define MAX_DIMENSIONS (2)
|
||||||
|
#define MAX_NUMBER_OF_LISTENING_THREADS (2)
|
||||||
|
|
||||||
//socket
|
//socket
|
||||||
#define GOODBYE (-200)
|
#define GOODBYE (-200)
|
||||||
#define RECEIVE_SOCKET_BUFFER_SIZE (100*1024*1024)
|
#define RECEIVE_SOCKET_BUFFER_SIZE (100*1024*1024)
|
||||||
|
@ -39,6 +39,8 @@ void Implementation::DeleteMembers() {
|
|||||||
dataProcessor.clear();
|
dataProcessor.clear();
|
||||||
dataStreamer.clear();
|
dataStreamer.clear();
|
||||||
fifo.clear();
|
fifo.clear();
|
||||||
|
eth.clear();
|
||||||
|
udpPortNum.clear();
|
||||||
ctbDbitList.clear();
|
ctbDbitList.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,9 +76,10 @@ void Implementation::InitializeMembers() {
|
|||||||
// network configuration (UDP)
|
// network configuration (UDP)
|
||||||
numUDPInterfaces = 1;
|
numUDPInterfaces = 1;
|
||||||
eth.resize(MAX_NUMBER_OF_LISTENING_THREADS);
|
eth.resize(MAX_NUMBER_OF_LISTENING_THREADS);
|
||||||
for (int i = 0; i < MAX_NUMBER_OF_LISTENING_THREADS; i++) {
|
udpPortNum.resize(MAX_NUMBER_OF_LISTENING_THREADS);
|
||||||
|
for (int i = 0; i < MAX_NUMBER_OF_LISTENING_THREADS; ++i) {
|
||||||
eth[i] = "";
|
eth[i] = "";
|
||||||
udpPortNum[i] = DEFAULT_UDP_PORTNO + i;
|
udpPortNum[i] = DEFAULT_UDP_PORTNO + i;
|
||||||
}
|
}
|
||||||
udpSocketBufferSize = 0;
|
udpSocketBufferSize = 0;
|
||||||
actualUDPSocketBufferSize = 0;
|
actualUDPSocketBufferSize = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user