sources/network/ipaddress.cpp

changeset 145
d0aedc9be448
parent 137
485cb6d6b98c
child 182
20ca0a6be175
equal deleted inserted replaced
144:e8d58327cd7f 145:d0aedc9be448
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 // -----------------------------------------------------------------------------

mercurial