mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-16 14:57:13 +02:00
new socket overload
This commit is contained in:
@ -18,4 +18,16 @@ class ClientSocket : public DataSocket {
|
||||
bool isReceiver;
|
||||
};
|
||||
|
||||
class ReceiverSocket : public ClientSocket {
|
||||
public:
|
||||
ReceiverSocket(const std::string &hostname, uint16_t port_number)
|
||||
: ClientSocket(true, hostname, port_number){};
|
||||
};
|
||||
|
||||
class DetectorSocket : public ClientSocket {
|
||||
public:
|
||||
DetectorSocket(const std::string &hostname, uint16_t port_number)
|
||||
: ClientSocket(false, hostname, port_number){};
|
||||
};
|
||||
|
||||
}; //namespace sls
|
||||
|
Reference in New Issue
Block a user