added possibility to disconnect.

This commit is contained in:
Gregor Fabritius 2013-02-23 22:01:31 +01:00
parent de8059f190
commit 2798087c2e

View File

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