Add SO_KEEPALIVE support to anet.c.

This commit is contained in:
antirez
2013-02-08 16:30:21 +01:00
parent fcfdbda104
commit f2817cbd9e
2 changed files with 44 additions and 0 deletions

View File

@ -55,5 +55,6 @@ int anetEnableTcpNoDelay(char *err, int fd);
int anetDisableTcpNoDelay(char *err, int fd);
int anetTcpKeepAlive(char *err, int fd);
int anetPeerToString(int fd, char *ip, int *port);
int anetKeepAlive(char *err, int fd, int interval);
#endif