MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / anetSetError

Function anetSetError

src/anet.c:51–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

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

Calls

no outgoing calls

Tested by

no test coverage detected