added possibility to unbind.

This commit is contained in:
Gregor Fabritius 2013-02-23 19:50:59 +01:00
parent b232978003
commit de8059f190

View File

@ -351,6 +351,13 @@ namespace zmq
throw error_t (); throw error_t ();
} }
inline void unbind (const char *addr_)
{
int rc = zmq_unbind (ptr, addr_);
if (rc != 0)
throw error_t ();
}
inline void connect (const char *addr_) inline void connect (const char *addr_)
{ {
int rc = zmq_connect (ptr, addr_); int rc = zmq_connect (ptr, addr_);