mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 00:00:02 +02:00
updated slsdetector users for zmqport set up
This commit is contained in:
parent
c0a114345b
commit
d1eab6f750
@ -97,10 +97,15 @@ class slsDetectorUtils : public slsDetectorActions, public postProcessing {
|
||||
* @param i sets, -1 gets
|
||||
* @returns receiver streaming out ZMQ port
|
||||
*/
|
||||
int setReceiverDataStreamingOutPort(int i) { \
|
||||
if (i >= 0) { ostringstream ss; ss << i; string s = ss.str(); \
|
||||
setNetworkParameter(RECEIVER_STREAMING_PORT, s);} \
|
||||
return atoi(getNetworkParameter(RECEIVER_STREAMING_PORT).c_str());}; \
|
||||
int setReceiverDataStreamingOutPort(int i) { \
|
||||
if (i >= 0) { \
|
||||
ostringstream ss; ss << i; string s = ss.str(); \
|
||||
int prev_streaming = enableDataStreamingFromReceiver(); \
|
||||
setNetworkParameter(RECEIVER_STREAMING_PORT, s); \
|
||||
if (prev_streaming) { \
|
||||
enableDataStreamingFromReceiver(0); \
|
||||
enableDataStreamingFromReceiver(1);}} \
|
||||
return atoi(getNetworkParameter(RECEIVER_STREAMING_PORT).c_str());}; \
|
||||
|
||||
/**
|
||||
* Set/Get client streaming in ZMQ port
|
||||
@ -108,10 +113,15 @@ class slsDetectorUtils : public slsDetectorActions, public postProcessing {
|
||||
* @param i sets, -1 gets
|
||||
* @returns client streaming in ZMQ port
|
||||
*/
|
||||
int setClientDataStreamingInPort(int i){ \
|
||||
if (i >= 0) { ostringstream ss; ss << i; string s = ss.str(); \
|
||||
setNetworkParameter(CLIENT_STREAMING_PORT, s);} \
|
||||
return atoi(getNetworkParameter(CLIENT_STREAMING_PORT).c_str());}; \
|
||||
int setClientDataStreamingInPort(int i){ \
|
||||
if (i >= 0) { \
|
||||
ostringstream ss; ss << i; string s = ss.str(); \
|
||||
int prev_streaming = enableDataStreamingToClient()(); \
|
||||
setNetworkParameter(CLIENT_STREAMING_PORT, s); \
|
||||
if (prev_streaming) { \
|
||||
enableDataStreamingToClient(0); \
|
||||
enableDataStreamingToClient(1);}} \
|
||||
return atoi(getNetworkParameter(CLIENT_STREAMING_PORT).c_str());}; \
|
||||
|
||||
|
||||
// string getFilePath(){return fileIO::getFilePath();};;
|
||||
|
Loading…
x
Reference in New Issue
Block a user