From de8059f190a03651b7db95267bf648ca444e95e2 Mon Sep 17 00:00:00 2001 From: Gregor Fabritius Date: Sat, 23 Feb 2013 19:50:59 +0100 Subject: [PATCH] added possibility to unbind. --- zmq.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zmq.hpp b/zmq.hpp index a30beda..5bd19a7 100644 --- a/zmq.hpp +++ b/zmq.hpp @@ -351,6 +351,13 @@ namespace zmq throw error_t (); } + inline void unbind (const char *addr_) + { + int rc = zmq_unbind (ptr, addr_); + if (rc != 0) + throw error_t (); + } + inline void connect (const char *addr_) { int rc = zmq_connect (ptr, addr_);