From 2798087c2e63b6c530525ba131cab4b7d30b6be3 Mon Sep 17 00:00:00 2001 From: Gregor Fabritius Date: Sat, 23 Feb 2013 22:01:31 +0100 Subject: [PATCH] added possibility to disconnect. --- zmq.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zmq.hpp b/zmq.hpp index 5bd19a7..a1f9751 100644 --- a/zmq.hpp +++ b/zmq.hpp @@ -365,6 +365,13 @@ namespace zmq throw error_t (); } + inline void disconnect (const char *addr_) + { + int rc = zmq_disconnect (ptr, addr_); + if (rc != 0) + throw error_t (); + } + inline bool connected() { return(ptr != NULL);