mirror of
https://github.com/zeromq/cppzmq.git
synced 2024-12-13 10:52:57 +01:00
Added wrapper for context options
This commit is contained in:
parent
25dbe96b86
commit
59f7d1ca2f
12
zmq.hpp
12
zmq.hpp
@ -427,6 +427,18 @@ namespace zmq
|
|||||||
}
|
}
|
||||||
#endif
|
#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
|
inline ~context_t () ZMQ_NOTHROW
|
||||||
{
|
{
|
||||||
close();
|
close();
|
||||||
|
Loading…
Reference in New Issue
Block a user