Added wrapper for context options

This commit is contained in:
Wilbert van de Ridder 2018-01-27 19:14:35 +01:00
parent 25dbe96b86
commit 59f7d1ca2f

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