mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-01-19 08:46:45 +01:00
added possibility to disconnect.
This commit is contained in:
parent
de8059f190
commit
2798087c2e
7
zmq.hpp
7
zmq.hpp
@ -365,6 +365,13 @@ namespace zmq
|
|||||||
throw error_t ();
|
throw error_t ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline void disconnect (const char *addr_)
|
||||||
|
{
|
||||||
|
int rc = zmq_disconnect (ptr, addr_);
|
||||||
|
if (rc != 0)
|
||||||
|
throw error_t ();
|
||||||
|
}
|
||||||
|
|
||||||
inline bool connected()
|
inline bool connected()
|
||||||
{
|
{
|
||||||
return(ptr != NULL);
|
return(ptr != NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user