Added 'connected' method to socket_t class.

This commit is contained in:
Ron Elliott 2012-07-28 10:22:10 -07:00
parent f1640d2c9d
commit ad415995ee

View File

@ -317,6 +317,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_);