diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-11-03 11:12:26 +0100 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-11-03 11:31:33 +0100 |
commit | 0ccb2c8d890753fcd6524545646f34274d977b9c (patch) | |
tree | a492b01b147a5b40f6be0ed2435cbae7275bc4dd /hiredis.c | |
parent | 8220cd4ba6539033a2744d5c34daa0757196bf14 (diff) |
Add functiont to net.c to connect to a unix socket
Diffstat (limited to 'hiredis.c')
-rw-r--r-- | hiredis.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -655,7 +655,7 @@ redisContext *redisConnect(const char *ip, int port) { redisContext *c = redisContextInit(); c->flags |= REDIS_BLOCK; c->flags |= REDIS_CONNECTED; - redisContextConnect(c,ip,port); + redisContextConnectTcp(c,ip,port); return c; } @@ -663,7 +663,7 @@ redisContext *redisConnectNonBlock(const char *ip, int port) { redisContext *c = redisContextInit(); c->flags &= ~REDIS_BLOCK; c->flags |= REDIS_CONNECTED; - redisContextConnect(c,ip,port); + redisContextConnectTcp(c,ip,port); return c; } |