can set zmqport from receiver, ensured proper destructors, and ctrl c should kill it

This commit is contained in:
Dhanya Maliakal
2017-07-13 12:17:49 +02:00
parent 672c42a20e
commit 39560969f4
22 changed files with 217 additions and 119 deletions

View File

@ -241,6 +241,12 @@ class UDPBaseImplementation : protected virtual slsReceiverDefs, public UDPInter
*/
int getActivate() const;
/**
* Get Streaming Port
* @return streaming port
*/
uint32_t getStreamingPort() const;
/*************************************************************************
@ -497,11 +503,6 @@ class UDPBaseImplementation : protected virtual slsReceiverDefs, public UDPInter
*/
void abort(); //FIXME: needed, isn't stopReceiver enough?
/**
* Closes all files
*/
void closeFiles();
/**
* Activate / Deactivate Receiver
* If deactivated, receiver will write dummy packets 0xFF
@ -509,6 +510,12 @@ class UDPBaseImplementation : protected virtual slsReceiverDefs, public UDPInter
*/
int setActivate(int enable = -1);
/**
* Set streaming port
* @param i streaming port
*/
void setStreamingPort(const uint32_t i);
//***callback functions***
/**
* Call back for start acquisition
@ -629,6 +636,8 @@ class UDPBaseImplementation : protected virtual slsReceiverDefs, public UDPInter
/** Data Stream Enable from Receiver */
bool dataStreamEnable;
static const int DEFAULT_STREAMING_TIMER = 500;
/** streaming port */
uint32_t streamingPort;
//***callback parameters***