mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-05-02 15:41:40 +02:00
Merge pull request #5 from ronelliott/master
Added connected helper method.
This commit is contained in:
commit
1a350206fe
5
zmq.hpp
5
zmq.hpp
@ -338,6 +338,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