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

Function my_ip

src/butil/endpoint.cpp:255–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253};
254
255ip_t my_ip() {
256 return get_leaky_singleton<MyAddressInfo>()->my_ip;
257}
258
259const char* my_ip_cstr() {
260 return get_leaky_singleton<MyAddressInfo>()->my_ip_str.c_str();

Callers 11

TESTFunction · 0.85
TEST_FFunction · 0.85
StartInternalMethod · 0.85
ConsumeHeadersMethod · 0.85
PrintMethod · 0.85
PackPublicPbrpcRequestFunction · 0.85
on_header_valueMethod · 0.85
default_methodMethod · 0.85
PrintClientSpanFunction · 0.85
default_methodMethod · 0.85

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.68
TEST_FFunction · 0.68