X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/65b472acceaf1c359ae22a410fc608c5fb311ffa..9aba884b348432a3ef802723a5f6692b353bbaa8:/src/anet.h?ds=inline diff --git a/src/anet.h b/src/anet.h index 118b4dda..406c5783 100644 --- a/src/anet.h +++ b/src/anet.h @@ -46,12 +46,13 @@ int anetUnixNonBlockConnect(char *err, char *path); int anetRead(int fd, char *buf, int count); int anetResolve(char *err, char *host, char *ipbuf); int anetTcpServer(char *err, int port, char *bindaddr); -int anetUnixServer(char *err, char *path); +int anetUnixServer(char *err, char *path, mode_t perm); int anetTcpAccept(char *err, int serversock, char *ip, int *port); int anetUnixAccept(char *err, int serversock); int anetWrite(int fd, char *buf, int count); int anetNonBlock(char *err, int fd); int anetTcpNoDelay(char *err, int fd); int anetTcpKeepAlive(char *err, int fd); +int anetPeerToString(int fd, char *ip, int *port); #endif