Merge pull request #5 from ronelliott/master

Added connected helper method.
This commit is contained in:
Pieter Hintjens 2012-08-28 21:10:50 -07:00
commit 1a350206fe

View File

@ -338,6 +338,11 @@ namespace zmq
throw error_t ();
}
inline bool connected()
{
return(ptr != NULL);
}
inline size_t send (const void *buf_, size_t len_, int flags_ = 0)
{
int nbytes = zmq_send (ptr, buf_, len_, flags_);