MCPcopy Create free account
hub / github.com/OpenAtomFoundation/pikiwidb / IpPortString

Function IpPortString

tools/pika_migrate/src/pstd/src/pstd_string.cc:648–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646}
647
648std::string IpPortString(const std::string& ip, int port) {
649 if (ip.empty()) {
650 return {};
651 }
652 char buf[10];
653 if (ll2string(buf, sizeof(buf), port) <= 0) {
654 return {};
655 }
656 return (ip + ":" + buf);
657}
658
659std::string ToRead(const std::string& str) {
660 std::string read;

Callers 6

ThreadMainMethod · 0.50
HandleMetaSyncRequestMethod · 0.50
HandleDBSyncRequestMethod · 0.50
WriteMethod · 0.50
TryAddSlaveMethod · 0.50

Calls 2

ll2stringFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected