Skip to content

Commit

Permalink
Merge pull request zeromq#181 from WRidder/master
Browse files Browse the repository at this point in the history
Added wrapper for context options
  • Loading branch information
bluca authored Jan 28, 2018
2 parents 25dbe96 + 59f7d1c commit a96e0de
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions zmq.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,18 @@ namespace zmq
}
#endif

inline int setctxopt(int option_, int optval_)
{
int rc = zmq_ctx_set (ptr, option_, optval_);
ZMQ_ASSERT (rc == 0);
return rc;
}

inline int getctxopt(int option_)
{
return zmq_ctx_get (ptr, option_);
}

inline ~context_t () ZMQ_NOTHROW
{
close();
Expand Down

0 comments on commit a96e0de

Please sign in to comment.