MCPcopy Create free account
hub / github.com/Tencent/phxqueue / EncodedAddrToIPString

Function EncodedAddrToIPString

phxqueue/comm/utils/addr_util.cpp:48–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48string EncodedAddrToIPString(const uint64_t encoded_addr) {
49 proto::Addr addr;
50 DecodeAddr(encoded_addr, addr);
51
52 return addr.ip();
53}
54
55string AddrToString(const proto::Addr &addr) {
56 return addr.ip() + ":" + to_string(addr.port()) + ":" + to_string(addr.paxos_port());

Callers 5

BuildTopicScaleStringMethod · 0.85
UpdateLiveMethod · 0.85
CheckImbalanceMethod · 0.85
AdjustScaleMethod · 0.85
TraceMapMethod · 0.85

Calls 1

DecodeAddrFunction · 0.85

Tested by

no test coverage detected