MCPcopy Create free account
hub / github.com/apache/brpc / ip2str

Function ip2str

src/butil/endpoint.cpp:129–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129IPStr ip2str(ip_t ip) {
130 IPStr str;
131 if (inet_ntop(AF_INET, &ip, str._buf, INET_ADDRSTRLEN) == NULL) {
132 return ip2str(IP_NONE);
133 }
134 return str;
135}
136
137int ip2hostname(ip_t ip, char* host, size_t host_len) {
138 if (host == NULL || host_len == 0) {

Callers 6

TESTFunction · 0.85
TEST_FFunction · 0.85
PackPublicPbrpcRequestFunction · 0.85
endpoint.hFile · 0.85
MyAddressInfoMethod · 0.85

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.68
TEST_FFunction · 0.68