new socket overload

This commit is contained in:
Erik Frojdh
2019-03-19 17:49:20 +01:00
parent 6759b2eeb8
commit 4e56107015
4 changed files with 183 additions and 171 deletions

View File

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