MCPcopy Create free account
hub / github.com/ElementsProject/lightning / describe_fd

Function describe_fd

connectd/connectd.c:2178–2189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2176}
2177
2178static void describe_fd(int fd)
2179{
2180 struct sockaddr_storage sa;
2181 socklen_t addrlen = sizeof(sa);
2182
2183 if (getsockname(fd, (void *)&sa, &addrlen) != 0) {
2184 status_broken("dev_report_fds: %i cannot get sockname (%s)",
2185 fd, strerror(errno));
2186 return;
2187 }
2188 status_info("dev_report_fds: %i name %s", fd, addr2name(tmpctx, &sa, addrlen));
2189}
2190
2191static const char *io_plan_status_str(enum io_plan_status status)
2192{

Callers 1

dev_report_fdsFunction · 0.85

Calls 1

addr2nameFunction · 0.85

Tested by

no test coverage detected