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

Function describe_fd

connectd/connectd.c:2130–2141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2128}
2129
2130static void describe_fd(int fd)
2131{
2132 struct sockaddr_storage sa;
2133 socklen_t addrlen = sizeof(sa);
2134
2135 if (getsockname(fd, (void *)&sa, &addrlen) != 0) {
2136 status_broken("dev_report_fds: %i cannot get sockname (%s)",
2137 fd, strerror(errno));
2138 return;
2139 }
2140 status_info("dev_report_fds: %i name %s", fd, addr2name(tmpctx, &sa, addrlen));
2141}
2142
2143static const char *io_plan_status_str(enum io_plan_status status)
2144{

Callers 1

dev_report_fdsFunction · 0.85

Calls 1

addr2nameFunction · 0.85

Tested by

no test coverage detected