summaryrefslogtreecommitdiff
path: root/src/anet.h
diff options
context:
space:
mode:
authorzhenwei pi <pizhenwei@bytedance.com>2022-07-27 09:38:25 +0800
committerzhenwei pi <pizhenwei@bytedance.com>2022-08-22 15:01:16 +0800
commit8045e26efacd8b1b1f7467002070eaf440a1c2bb (patch)
tree7cd0ccda24641d5da75ec710d3f21471796c0f70 /src/anet.h
parentdca5c6ff114b69213ee3c14530e0ed20169d86b0 (diff)
downloadredis-8045e26efacd8b1b1f7467002070eaf440a1c2bb.tar.gz
Move 'connGetSocketError' to 'anetGetError'
getsockopt is part of TCP, rename 'connGetSocketError' to 'anetGetError', and move it into anet.c. Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Diffstat (limited to 'src/anet.h')
-rw-r--r--src/anet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/anet.h b/src/anet.h
index ff86e2029..b1a3847de 100644
--- a/src/anet.h
+++ b/src/anet.h
@@ -74,5 +74,6 @@ int anetFormatAddr(char *fmt, size_t fmt_len, char *ip, int port);
int anetFormatFdAddr(int fd, char *buf, size_t buf_len, int fd_to_str_type);
int anetPipe(int fds[2], int read_flags, int write_flags);
int anetSetSockMarkId(char *err, int fd, uint32_t id);
+int anetGetError(int fd);
#endif