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

Function Ip6ToString

util/draft/ip.h:75–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75static inline char* Ip6ToString(const TIp6& ip, char* buf, size_t len) {
76 if (!inet_ntop(AF_INET6, (void*)&ip.Data, buf, (socklen_t)len)) {
77 ythrow TSystemError() << "Failed to get ipv6 address string";
78 }
79
80 return buf;
81}
82
83static inline TString Ip6ToString(const TIp6& ip) {
84 char buf[INET6_ADDRSTRLEN];

Callers 2

Out<TIp6>Function · 0.85
Ip4Or6ToStringFunction · 0.85

Calls 1

inet_ntopFunction · 0.85

Tested by

no test coverage detected