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

Function connGetInfo

src/connection.cpp:475–478  ·  view source on GitHub ↗

Return a text that describes the connection, suitable for inclusion * in CLIENT LIST and similar outputs. * * For sockets, we always return "fd= " to maintain compatibility. */

Source from the content-addressed store, hash-verified

473 * For sockets, we always return "fd=<fdnum>" to maintain compatibility.
474 */
475const char *connGetInfo(connection *conn, char *buf, size_t buf_len) {
476 snprintf(buf, buf_len-1, "fd=%i", conn == NULL ? -1 : conn->fd);
477 return buf;
478}

Callers 4

syncWithMasterFunction · 0.85
acceptCommonHandlerFunction · 0.85
catClientInfoStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected