mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-05-02 23:42:32 +02:00
Added 'connected' method to socket_t class.
This commit is contained in:
parent
f1640d2c9d
commit
ad415995ee
5
zmq.hpp
5
zmq.hpp
@ -317,6 +317,11 @@ namespace zmq
|
|||||||
throw error_t ();
|
throw error_t ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline bool connected()
|
||||||
|
{
|
||||||
|
return(ptr != NULL);
|
||||||
|
}
|
||||||
|
|
||||||
inline size_t send (const void *buf_, size_t len_, int flags_ = 0)
|
inline size_t send (const void *buf_, size_t len_, int flags_ = 0)
|
||||||
{
|
{
|
||||||
int nbytes = zmq_send (ptr, buf_, len_, flags_);
|
int nbytes = zmq_send (ptr, buf_, len_, flags_);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user