55 if (host ==
nullptr || port ==
nullptr) {
63 size_t pos = arg.find(
':');
64 if (pos != std::string::npos) {
69 std::string hostComponent = arg.substr(0, pos);
70 std::string portComponent = arg.substr(pos + 1);
75 *host = hostComponent;
76 *port = atoi(portComponent.c_str());
82 *port = atoi(arg.c_str());