client: must print detector or receiver returning error

This commit is contained in:
2019-02-25 09:16:20 +01:00
parent eecfcae312
commit 15fc55f914
3 changed files with 124 additions and 123 deletions

View File

@ -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