summaryrefslogtreecommitdiff
path: root/hiredis.h
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2010-11-01 09:27:43 +0100
committerPieter Noordhuis <pcnoordhuis@gmail.com>2010-11-01 09:27:43 +0100
commit4e3bd7893d4e59ca23b629cc9084e9c61d5edf25 (patch)
tree8c864ce20d51c99cf46c04cdc8db5e024d338475 /hiredis.h
parentae5a13f55753dc5dddc7d7a9a723c1559054359d (diff)
Add support to lazily disconnect an asynchronous connection
Diffstat (limited to 'hiredis.h')
-rw-r--r--hiredis.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/hiredis.h b/hiredis.h
index 4e174d7..76b07e0 100644
--- a/hiredis.h
+++ b/hiredis.h
@@ -43,6 +43,12 @@
* in the flags field is set when the context is connected. */
#define REDIS_CONNECTED 0x2
+/* The async API might try to disconnect cleanly and flush the output
+ * buffer and read all subsequent replies before disconnecting.
+ * This flag means no new commands can come in and the connection
+ * should be terminated once all replies have been read. */
+#define REDIS_DISCONNECTING 0x4
+
#define REDIS_ERROR -1
#define REDIS_REPLY_ERROR 0
#define REDIS_REPLY_STRING 1