Skip to content

Commit a96e0de

Browse files
authored
Merge pull request #181 from WRidder/master
Added wrapper for context options
2 parents 25dbe96 + 59f7d1c commit a96e0de

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

zmq.hpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,18 @@ namespace zmq
427427
}
428428
#endif
429429

430+
inline int setctxopt(int option_, int optval_)
431+
{
432+
int rc = zmq_ctx_set (ptr, option_, optval_);
433+
ZMQ_ASSERT (rc == 0);
434+
return rc;
435+
}
436+
437+
inline int getctxopt(int option_)
438+
{
439+
return zmq_ctx_get (ptr, option_);
440+
}
441+
430442
inline ~context_t () ZMQ_NOTHROW
431443
{
432444
close();

0 commit comments

Comments
 (0)