diff options
author | mike <mike@okcupid.com> | 2014-08-14 16:24:59 -0400 |
---|---|---|
committer | Matt Stancliff <matt@genges.com> | 2015-01-05 16:39:30 -0500 |
commit | 7c4d2557c4bbc637514392cb725719790b50f677 (patch) | |
tree | 7203ac816e360be67253f6f7175580e90b8d1caa /async.h | |
parent | a1bc89b23621df61437619eec849a6a8bcc30a03 (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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |