MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetSAFamily

Method GetSAFamily

src/netaddress.cpp:822–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

820}
821
822sa_family_t CService::GetSAFamily() const
823{
824 switch (m_net) {
825 case NET_IPV4:
826 return AF_INET;
827 case NET_IPV6:
828 case NET_CJDNS:
829 return AF_INET6;
830 default:
831 return AF_UNSPEC;
832 }
833}
834
835uint16_t CService::GetPort() const
836{

Callers 4

BindAndStartListeningMethod · 0.80
ConnectDirectlyFunction · 0.80
GetFamilyMethod · 0.80
BindListenPortMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected