diff options
author | Martin Lucina <mato@kotelna.sk> | 2011-05-13 12:43:09 +0200 |
---|---|---|
committer | Martin Lucina <martin@lucina.net> | 2012-01-23 08:53:59 +0100 |
commit | ad3e013f74d309b86e8f087932203e5787fe2d2d (patch) | |
tree | a872da7e7338a0bb27b92ef1f198689873b86978 /src/socket_base.hpp | |
parent | f34d1599a651dd0b8feba2397f87629733988384 (diff) | |
parent | b593ea30833ad5dcacb9076c988aec31b0cf26ec (diff) |
Imported Debian patch 2.1.7-1debian/2.1.7-1
Diffstat (limited to 'src/socket_base.hpp')
-rw-r--r-- | src/socket_base.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/socket_base.hpp b/src/socket_base.hpp index 15ac83c..333cddd 100644 --- a/src/socket_base.hpp +++ b/src/socket_base.hpp @@ -50,6 +50,9 @@ namespace zmq public: + // Returns false if object is not a socket. + bool check_tag (); + // Create a socket of a specified type. static socket_base_t *create (int type_, class ctx_t *parent_, uint32_t tid_); @@ -136,6 +139,9 @@ namespace zmq private: + // Used to check whether the object is a socket. + uint32_t tag; + // If true, associated context was already terminated. bool ctx_terminated; |