summaryrefslogtreecommitdiff
path: root/async.h
diff options
context:
space:
mode:
authormike <mike@okcupid.com>2014-08-14 16:24:59 -0400
committerMatt Stancliff <matt@genges.com>2015-01-05 16:39:30 -0500
commit7c4d2557c4bbc637514392cb725719790b50f677 (patch)
tree7203ac816e360be67253f6f7175580e90b8d1caa /async.h
parenta1bc89b23621df61437619eec849a6a8bcc30a03 (diff)
Add support for SO_REUSEADDR
[This introduces some new API functions.] * Adds new flag to the connection context indicating SO_REUSEADDR should be set. * Adds max number of retries constant for when connect() hits EADDRNOTAVAIL. * Adds new function, redisAsyncConnectBindWithReuse(), letting clients enable this functionality. [Removed trailing whitespace in new header lines.] Closes #264
Diffstat (limited to 'async.h')
-rw-r--r--async.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/async.h b/async.h
index 67c75ff..59cbf46 100644
--- a/async.h
+++ b/async.h
@@ -103,6 +103,8 @@ typedef struct redisAsyncContext {
/* Functions that proxy to hiredis */
redisAsyncContext *redisAsyncConnect(const char *ip, int port);
redisAsyncContext *redisAsyncConnectBind(const char *ip, int port, const char *source_addr);
+redisAsyncContext *redisAsyncConnectBindWithReuse(const char *ip, int port,
+ const char *source_addr);
redisAsyncContext *redisAsyncConnectUnix(const char *path);
int redisAsyncSetConnectCallback(redisAsyncContext *ac, redisConnectCallback *fn);
int redisAsyncSetDisconnectCallback(redisAsyncContext *ac, redisDisconnectCallback *fn);