rxr: missing packets, stopacquistion lets rxr know to calculate missing packets from last frame caught

This commit is contained in:
2019-11-20 16:16:14 +01:00
parent f96f716f39
commit 398f3734ec
13 changed files with 114 additions and 17 deletions

View File

@ -77,6 +77,7 @@ class ClientInterface : private virtual slsDetectorDefs {
int set_file_name(sls::ServerInterface2 &socket);
int set_file_index(sls::ServerInterface2 &socket);
int get_frame_index(sls::ServerInterface2 &socket);
int get_missing_packets(sls::ServerInterface2 &socket);
int get_frames_caught(sls::ServerInterface2 &socket);
int enable_file_write(sls::ServerInterface2 &socket);
int enable_master_file_write(sls::ServerInterface2 &socket);

View File

@ -58,6 +58,7 @@ class Implementation : private virtual slsDetectorDefs {
//***acquisition count parameters***
uint64_t getFramesCaught() const;
uint64_t getAcquisitionIndex() const;
std::vector<uint64_t> getNumMissingPackets() const;
//***connection parameters***
uint32_t getUDPPortNumber() const;
@ -198,6 +199,7 @@ class Implementation : private virtual slsDetectorDefs {
//***acquisition functions***
int startReceiver(std::string& err);
void setStoppedFlag(bool stopped);
void stopReceiver();
void startReadout();
void shutDownUDPSockets();
@ -291,6 +293,7 @@ class Implementation : private virtual slsDetectorDefs {
uint32_t streamingPort;
sls::IpAddr streamingSrcIP;
std::string additionalJsonHeader;
bool stoppedFlag;
//** class objects ***
GeneralData *generalData;

View File

@ -70,6 +70,9 @@ class Listener : private virtual slsDetectorDefs, public ThreadObject {
*/
uint64_t GetLastFrameIndexCaught();
/** Get number of missing packets */
uint64_t GetNumMissingPacket(bool stoppedFlag, uint64_t numPackets);
//*** setters ***
/**