Merge pull request #20 from taurel/master

Add a disconnect method to the socket_t class
This commit is contained in:
Pieter Hintjens 2013-06-27 10:54:34 -07:00
commit 56482ca7c8

View File

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