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

Function connSockName

src/connection.cpp:413–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411}
412
413int connSockName(connection *conn, char *ip, size_t ip_len, int *port) {
414 return anetFdToString(conn->fd, ip, ip_len, port, FD_TO_SOCK_NAME);
415}
416
417int connFormatFdAddr(connection *conn, char *buf, size_t buf_len, int fd_to_str_type) {
418 return anetFormatFdAddr(conn ? conn->fd : -1, buf, buf_len, fd_to_str_type);

Callers 1

clusterProcessPacketFunction · 0.85

Calls 1

anetFdToStringFunction · 0.85

Tested by

no test coverage detected