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

Function my_hostname

src/butil/endpoint.cpp:263–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263const char* my_hostname() {
264 return get_leaky_singleton<MyAddressInfo>()->my_hostname;
265}
266
267int str2endpoint(const char* str, EndPoint* point) {
268 if (ExtendedEndPoint::create(str, point)) {

Callers 5

TESTFunction · 0.85
StartInternalMethod · 0.85
PrintLogPrefixFunction · 0.85
PrintLogPrefixAsJSONFunction · 0.85
OnLogMessageMethod · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68