159 // Possibly a hostname, try resolve it |
159 // Possibly a hostname, try resolve it |
160 value = IPAddress::resolve (addressString); |
160 value = IPAddress::resolve (addressString); |
161 } |
161 } |
162 |
162 |
163 if (colonpos != -1) |
163 if (colonpos != -1) |
164 value.port = (unsigned short) input.mid (colonpos + 1, -1).to_int(); |
164 value.port = (unsigned short) input.mid (colonpos + 1, -1).toInt(); |
165 |
165 |
166 return value; |
166 return value; |
167 } |
167 } |
168 |
168 |
169 // ----------------------------------------------------------------------------- |
169 // ----------------------------------------------------------------------------- |