From 0ccb2c8d890753fcd6524545646f34274d977b9c Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Wed, 3 Nov 2010 11:12:26 +0100 Subject: Add functiont to net.c to connect to a unix socket --- hiredis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hiredis.c') diff --git a/hiredis.c b/hiredis.c index 471483e..e06e837 100644 --- a/hiredis.c +++ b/hiredis.c @@ -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; } -- cgit v1.2.3