mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-17 07:17:13 +02:00
client: must print detector or receiver returning error
This commit is contained in:
@ -9,12 +9,13 @@ namespace sls {
|
||||
|
||||
class ClientSocket : public DataSocket {
|
||||
public:
|
||||
ClientSocket(const std::string &hostname, uint16_t port_number);
|
||||
ClientSocket(const bool isRx, const std::string &hostname, uint16_t port_number);
|
||||
int sendCommandThenRead(int fnum, void *args, size_t args_size, void *retval, size_t retval_size);
|
||||
|
||||
private:
|
||||
void readReply(int &ret, void *retval, size_t retval_size);
|
||||
struct sockaddr_in serverAddr {};
|
||||
bool isReceiver;
|
||||
};
|
||||
|
||||
}; //namespace sls
|
||||
}; //namespace sls
|
||||
|
Reference in New Issue
Block a user