diff options
| author | Eddy Jansson <eddy@scmcoord.com> | 2014-02-24 11:41:00 +0100 | 
|---|---|---|
| committer | Matt Stancliff <matt@genges.com> | 2014-04-09 17:02:42 -0400 | 
| commit | ae30d58ff91061e0b0f889f60a9ab2062fa4e9d0 (patch) | |
| tree | b51aac4c7f41b2ff02c99a731eabe6bc2c3b6dca /hiredis.h | |
| parent | 37d25a392c9b9468e064a67c504939c9c4ea0031 (diff) | |
| download | hiredict-ae30d58ff91061e0b0f889f60a9ab2062fa4e9d0.tar.xz | |
Add redisConnectFd() and redisFreeKeepFd()
These allows for easier integration of hiredis with external
code that wants to manage its fds, say for instance in a pool.
Closes #223
Diffstat (limited to 'hiredis.h')
| -rw-r--r-- | hiredis.h | 2 | 
1 files changed, 2 insertions, 0 deletions
@@ -179,9 +179,11 @@ redisContext *redisConnectBindNonBlock(const char *ip, int port, char *source);  redisContext *redisConnectUnix(const char *path);  redisContext *redisConnectUnixWithTimeout(const char *path, const struct timeval tv);  redisContext *redisConnectUnixNonBlock(const char *path); +redisContext *redisConnectFd(int fd);  int redisSetTimeout(redisContext *c, const struct timeval tv);  int redisEnableKeepAlive(redisContext *c);  void redisFree(redisContext *c); +int redisFreeKeepFd(redisContext *c);  int redisBufferRead(redisContext *c);  int redisBufferWrite(redisContext *c, int *done);  | 
