X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/65b472acceaf1c359ae22a410fc608c5fb311ffa..b8ce9a84c57eba13a157d7c1074254b5ce6bebd3:/src/anet.h 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