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);