From 37d25a392c9b9468e064a67c504939c9c4ea0031 Mon Sep 17 00:00:00 2001 From: Matt Stancliff Date: Tue, 8 Apr 2014 13:15:36 -0400 Subject: Add ability to bind source address on connect Some environments require binding to specific source addresses instead of letting the system determine which IP a connection should originate from. Closes #233 --- net.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'net.h') diff --git a/net.h b/net.h index af7da11..370a1ff 100644 --- a/net.h +++ b/net.h @@ -42,6 +42,8 @@ int redisCheckSocketError(redisContext *c); int redisContextSetTimeout(redisContext *c, const struct timeval tv); int redisContextConnectTcp(redisContext *c, const char *addr, int port, const struct timeval *timeout); +int redisContextConnectBindTcp(redisContext *c, const char *addr, int port, + const struct timeval *timeout, char *source_addr); int redisContextConnectUnix(redisContext *c, const char *path, const struct timeval *timeout); int redisKeepAlive(redisContext *c, int interval); -- cgit v1.2.3