add conflate support in SubSocket constructor

This commit is contained in:
Comma Device
2019-11-14 00:00:50 +00:00
parent 7fd314afa4
commit ef4ded0602
2 changed files with 8 additions and 0 deletions

View File

@@ -36,6 +36,13 @@ SubSocket * SubSocket::create(Context * context, std::string endpoint, std::stri
return s;
}
SubSocket * SubSocket::create(Context * context, std::string endpoint, std::string address, bool conflate){
SubSocket *s = SubSocket::create();
s->connect(context, endpoint, address, conflate);
return s;
}
PubSocket * PubSocket::create(){
PubSocket * s;
if (std::getenv("ZMQ")){

View File

@@ -30,6 +30,7 @@ public:
static SubSocket * create();
static SubSocket * create(Context * context, std::string endpoint);
static SubSocket * create(Context * context, std::string endpoint, std::string address);
static SubSocket * create(Context * context, std::string endpoint, std::string address, bool conflate);
virtual ~SubSocket(){};
};