MCPcopy Create free account
hub / github.com/catboost/catboost / IsInetAddress

Function IsInetAddress

util/network/interface.cpp:15–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14namespace NAddr {
15 static bool IsInetAddress(sockaddr* addr) {
16 return (addr != nullptr) && ((addr->sa_family == AF_INET) || (addr->sa_family == AF_INET6));
17 }
18
19 TNetworkInterfaceList GetNetworkInterfaces() {
20 TNetworkInterfaceList result;

Callers 1

GetNetworkInterfacesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected