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. */
| 427 | * For sockets, we always return "fd=<fdnum>" to maintain compatibility. |
| 428 | */ |
| 429 | const 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 |
no test coverage detected