mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-19 08:17:13 +02:00
new constuctor
This commit is contained in:
@ -10,7 +10,9 @@ namespace sls {
|
||||
class ClientSocket : public DataSocket {
|
||||
public:
|
||||
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);
|
||||
ClientSocket(const bool isRx, struct sockaddr_in addr);
|
||||
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);
|
||||
@ -19,15 +21,17 @@ class ClientSocket : public DataSocket {
|
||||
};
|
||||
|
||||
class ReceiverSocket : public ClientSocket {
|
||||
public:
|
||||
public:
|
||||
ReceiverSocket(const std::string &hostname, uint16_t port_number)
|
||||
: ClientSocket(true, hostname, port_number){};
|
||||
ReceiverSocket(struct sockaddr_in addr) : ClientSocket(true, addr){};
|
||||
};
|
||||
|
||||
class DetectorSocket : public ClientSocket {
|
||||
public:
|
||||
public:
|
||||
DetectorSocket(const std::string &hostname, uint16_t port_number)
|
||||
: ClientSocket(false, hostname, port_number){};
|
||||
DetectorSocket(struct sockaddr_in addr) : ClientSocket(false, addr){};
|
||||
};
|
||||
|
||||
}; //namespace sls
|
||||
}; // namespace sls
|
||||
|
Reference in New Issue
Block a user