mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-03-03 04:38:42 +01:00
Merge pull request #20 from taurel/master
Add a disconnect method to the socket_t class
This commit is contained in:
commit
56482ca7c8
7
zmq.hpp
7
zmq.hpp
@ -358,6 +358,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