sources/network/ipaddress.cpp

branch
protocol5
changeset 150
37db42ad451a
parent 145
d0aedc9be448
child 182
20ca0a6be175
equal deleted inserted replaced
141:d9073c13dc98 150:37db42ad451a
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