mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-08-07 03:02:25 +02:00
tcp: Variable size array (#1492)
Build and Deploy on local RHEL9 / build (push) Successful in 2m4s
Build on RHEL9 docker image / build (push) Successful in 3m57s
Build on RHEL8 docker image / build (push) Successful in 5m6s
Build and Deploy on local RHEL8 / build (push) Successful in 5m9s
Run Simulator Tests on local RHEL9 / build (push) Successful in 20m7s
Run Simulator Tests on local RHEL8 / build (push) Successful in 23m40s
Build and Deploy on local RHEL9 / build (push) Successful in 2m4s
Build on RHEL9 docker image / build (push) Successful in 3m57s
Build on RHEL8 docker image / build (push) Successful in 5m6s
Build and Deploy on local RHEL8 / build (push) Successful in 5m9s
Run Simulator Tests on local RHEL9 / build (push) Successful in 20m7s
Run Simulator Tests on local RHEL8 / build (push) Successful in 23m40s
* templated variable vector size (sending/receive size before vector) in ClientSocket and Module:SendToReceiverVarVector * fix warnign * Another tcp function ironed out but for Detector * wip * fix * wip * wip * wip * wip * fix for execccomand * typo --------- Co-authored-by: AliceMazzoleni99 <alice.mazzoleni@psi.ch>
This commit is contained in:
@@ -626,9 +626,18 @@ class Module : public virtual slsDetectorDefs {
|
||||
private:
|
||||
std::string getReceiverLongVersion() const;
|
||||
|
||||
void checkArgs(const void *args, size_t args_size) const;
|
||||
void checkArgs(const void *args, size_t args_size, void *retval,
|
||||
size_t retval_size) const;
|
||||
|
||||
DetectorSocket createDetectorSocket() const;
|
||||
|
||||
template <typename Arg>
|
||||
void sendToDetectorVarVector(int fnum, const std::vector<Arg> &args) const;
|
||||
|
||||
template <typename Ret>
|
||||
std::vector<Ret> sendToDetectorVarVector(int fnum) const;
|
||||
|
||||
/**
|
||||
* Send function parameters to detector (control server)
|
||||
* @param fnum function enum
|
||||
@@ -674,6 +683,9 @@ class Module : public virtual slsDetectorDefs {
|
||||
Ret sendToDetector(int fnum, const Arg &args) const;
|
||||
|
||||
/** Send function parameters to detector (stop server) */
|
||||
|
||||
DetectorSocket createDetectorStopSocket() const;
|
||||
|
||||
void sendToDetectorStop(int fnum, const void *args, size_t args_size,
|
||||
void *retval, size_t retval_size);
|
||||
|
||||
@@ -713,6 +725,15 @@ class Module : public virtual slsDetectorDefs {
|
||||
Ret sendToDetectorStop(int fnum, const Arg &args) const;
|
||||
|
||||
/** Send function parameters to receiver */
|
||||
|
||||
ReceiverSocket createReceiverSocket() const;
|
||||
|
||||
template <typename Arg>
|
||||
void sendToReceiverVarVector(int fnum, const std::vector<Arg> &args) const;
|
||||
|
||||
template <typename Ret>
|
||||
std::vector<Ret> sendToReceiverVarVector(int fnum) const;
|
||||
|
||||
void sendToReceiver(int fnum, const void *args, size_t args_size,
|
||||
void *retval, size_t retval_size);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user