MCPcopy Create free account
hub / github.com/LUX-Core/lux / SetSockAddr

Method SetSockAddr

src/netbase.cpp:1090–1102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1088}
1089
1090bool CService::SetSockAddr(const struct sockaddr* paddr)
1091{
1092 switch (paddr->sa_family) {
1093 case AF_INET:
1094 *this = CService(*(const struct sockaddr_in*)paddr);
1095 return true;
1096 case AF_INET6:
1097 *this = CService(*(const struct sockaddr_in6*)paddr);
1098 return true;
1099 default:
1100 return false;
1101 }
1102}
1103
1104CService::CService(const char* pszIpPort, bool fAllowLookup)
1105{

Callers 1

AcceptConnectionFunction · 0.80

Calls 1

CServiceClass · 0.70

Tested by

no test coverage detected