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

Function anetSetError

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

Source from the content-addressed store, hash-verified

50#include "anet.h"
51
52static void anetSetError(char *err, const char *fmt, ...)
53{
54 va_list ap;
55
56 if (!err) return;
57 va_start(ap, fmt);
58 vsnprintf(err, ANET_ERR_LEN, fmt, ap);
59 va_end(ap);
60}
61
62
63int anetSetBlock(char *err, int fd, int non_block) {

Callers 14

anetSetBlockFunction · 0.85
anetKeepAliveFunction · 0.85
anetSetTcpNoDelayFunction · 0.85
anetSendTimeoutFunction · 0.85
anetRecvTimeoutFunction · 0.85
anetResolveFunction · 0.85
anetSetReuseAddrFunction · 0.85
anetCreateSocketFunction · 0.85
anetTcpGenericConnectFunction · 0.85
anetUnixGenericConnectFunction · 0.85
anetListenFunction · 0.85
anetV6OnlyFunction · 0.85

Calls 1

vsnprintfFunction · 0.85

Tested by

no test coverage detected