Merge pull request #17 from grefab/master

Allowing for unbind and disconnect
This commit is contained in:
Pieter Hintjens 2013-06-27 10:55:43 -07:00
commit b009df6499

View File

@ -376,6 +376,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_);