From 1788f41f168e7fe19a79908a58fc1841b60ab170 Mon Sep 17 00:00:00 2001 From: m Date: Sun, 31 Mar 2019 18:03:11 +0200 Subject: Move network I/O calls to net.c This makes hiredis.c free from system calls related to socket I/O. This is also makes the treatment of raw socket connections more similar to the SSL backend. --- net.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'net.h') diff --git a/net.h b/net.h index a11594e..a4393c0 100644 --- a/net.h +++ b/net.h @@ -37,6 +37,10 @@ #include "hiredis.h" +void redisNetClose(redisContext *c); +int redisNetRead(redisContext *c, char *buf, size_t bufcap); +int redisNetWrite(redisContext *c); + 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); -- cgit v1.2.3