Skip to content

Commit

Permalink
Merge pull request #5 from ronelliott/master
Browse files Browse the repository at this point in the history
Added connected helper method.
  • Loading branch information
hintjens committed Aug 29, 2012
2 parents bdabaaf + ad41599 commit 1a35020
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zmq.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_);
Expand Down

0 comments on commit 1a35020

Please sign in to comment.