Skip to content

Commit

Permalink
Add a disconnect method (interface to the zmq_disconnect call) in the…
Browse files Browse the repository at this point in the history
… socket_t class
  • Loading branch information
taurel committed Jun 26, 2013
1 parent b232978 commit 3afc98e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions zmq.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,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);
Expand Down

0 comments on commit 3afc98e

Please sign in to comment.