| 164 | mutable std::string str; |
| 165 | |
| 166 | impl(const std::string& s) : |
| 167 | scheme(0), username(0), password(0), host(0), port(0), path(0), |
| 168 | cstr(s.size()+1, '\0') |
| 169 | { |
| 170 | std::copy(s.begin(), s.end(), cstr.begin()); |
| 171 | parse_url(&cstr[0], &scheme, &username, &password, &host, &port, &path); |
| 172 | } |
| 173 | |
| 174 | void defaults() { |
| 175 | if (!scheme || *scheme=='\0' ) scheme = proton::url::AMQP.c_str(); |