MCPcopy Create free account
hub / github.com/F-Stack/f-stack / anetUnixAccept

Function anetUnixAccept

app/redis-6.2.6/src/anet.c:540–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538}
539
540int anetUnixAccept(char *err, int s) {
541 int fd;
542 struct sockaddr_un sa;
543 socklen_t salen = sizeof(sa);
544 if ((fd = anetGenericAccept(err,s,(struct sockaddr*)&sa,&salen)) == -1)
545 return ANET_ERR;
546
547 return fd;
548}
549
550int anetFdToString(int fd, char *ip, size_t ip_len, int *port, int fd_to_str_type) {
551 struct sockaddr_storage sa;

Callers 1

acceptUnixHandlerFunction · 0.85

Calls 1

anetGenericAcceptFunction · 0.85

Tested by

no test coverage detected