| 646 | } |
| 647 | |
| 648 | std::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 | |
| 659 | std::string ToRead(const std::string& str) { |
| 660 | std::string read; |
no test coverage detected