anet.c: API to set sockets back to blocking mode.

This commit is contained in:
antirez
2014-10-17 16:30:11 +02:00
parent 9a521e6c74
commit 23bf435f54
2 changed files with 18 additions and 4 deletions

View File

@ -61,6 +61,7 @@ int anetTcpAccept(char *err, int serversock, char *ip, size_t ip_len, int *port)
int anetUnixAccept(char *err, int serversock);
int anetWrite(int fd, char *buf, int count);
int anetNonBlock(char *err, int fd);
int anetBlock(char *err, int fd);
int anetEnableTcpNoDelay(char *err, int fd);
int anetDisableTcpNoDelay(char *err, int fd);
int anetTcpKeepAlive(char *err, int fd);