Merge pull request #181 from WRidder/master

Added wrapper for context options
This commit is contained in:
Luca Boccassi 2018-01-28 10:58:18 +00:00 committed by GitHub
commit a96e0ded64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

12
zmq.hpp
View File

@ -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();