From 59f7d1ca2f99b46827d65bcea0b5942eecfa27f1 Mon Sep 17 00:00:00 2001 From: Wilbert van de Ridder Date: Sat, 27 Jan 2018 19:14:35 +0100 Subject: [PATCH] Added wrapper for context options --- zmq.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/zmq.hpp b/zmq.hpp index 12b9581..bb7a51b 100644 --- a/zmq.hpp +++ b/zmq.hpp @@ -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();