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

Function connGetInfo

app/redis-6.2.6/src/connection.c:429–432  ·  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

427 * For sockets, we always return "fd=<fdnum>" to maintain compatibility.
428 */
429const char *connGetInfo(connection *conn, char *buf, size_t buf_len) {
430 snprintf(buf, buf_len-1, "fd=%i", conn == NULL ? -1 : conn->fd);
431 return buf;
432}
433

Callers 4

syncWithMasterFunction · 0.85
acceptCommonHandlerFunction · 0.85
catClientInfoStringFunction · 0.85

Calls 1

snprintfFunction · 0.85

Tested by

no test coverage detected