mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-05-02 15:41:40 +02:00
Merge pull request #17 from grefab/master
Allowing for unbind and disconnect
This commit is contained in:
commit
b009df6499
7
zmq.hpp
7
zmq.hpp
@ -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_);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user