Skip to content

Commit

Permalink
add conflate support in SubSocket constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Comma Device committed Nov 14, 2019
1 parent 7fd314a commit ef4ded0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions messaging/messaging.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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")){
Expand Down
1 change: 1 addition & 0 deletions messaging/messaging.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class SubSocket {
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(){};
};

Expand Down

0 comments on commit ef4ded0

Please sign in to comment.