Commit graph

17 commits

Author SHA1 Message Date
Christophe Dumez
4ba5e43933 Improve peer host name resolution (closes #360)
- Take a QString in argument to avoid converting it twice. The caller already
  has the IP as a QString.
- Fix bug where hostnames coming from the cache would not the displayed.
- Fix bug where the resolved hostnames would not be displayed if the IP we know
  does not match the first one in the QHostInfo::addresses() list. It may come
  later in the list or may be formatted differently (possible with IPv6).
- Avoid requesting again host names for IPs that were already requested recently
  but whose resolution did not return a useful hostname.
2013-03-28 21:47:45 +02:00
Christophe Dumez
6778b7460a Clean up PeerListWidget 2012-02-25 21:02:19 +02:00
Christophe Dumez
a8a7b61ea9 Coding style clean up 2012-02-20 19:30:53 +02:00
Christophe Dumez
122db6a77e Fix exceptions on Windows XP when IPv6 is disabled (Thanks paolo zambotti) 2011-05-05 16:16:20 +00:00
Christophe Dumez
844bd52c67 Improved hostname resolution code 2011-01-22 18:55:54 +00:00
Christophe Dumez
8a5dc1f239 Fix compilation on Windows (Remove using namespace libtorrent; from headers) 2010-11-22 21:55:32 +00:00
Christophe Dumez
105de3161a Improved hostname resolution code 2010-10-20 17:19:18 +00:00
Christophe Dumez
1eb26bd78b Greatly improved peer host name resolution with caching 2010-10-10 21:03:45 +00:00
Christophe Dumez
492814a56e Fix possible crash in boost exception handling 2010-03-29 10:43:56 +00:00
Christophe Dumez
6885f46f4b - Restore compatiblity with recent libboost (broken by last commit) 2009-11-28 22:22:35 +00:00
Christophe Dumez
9323660c79 - Fix compilation with Qt 4.4
- Fix compilation with older boost libraries
2009-11-28 21:46:46 +00:00
Christophe Dumez
27aff04f11 - Catch invalid_handle exception in savefastresume data 2009-11-28 13:50:16 +00:00
Christophe Dumez
873221ec14 - Catch exception thrown by resolver.resolve() and display the error message on stderr 2009-11-21 08:37:09 +00:00
Christophe Dumez
36748b6729 - Removed some debug 2009-11-15 13:11:07 +00:00
Christophe Dumez
4824637681 - Delete hostname resolver asynchronously to avoid freezing the GUI on preference window closing 2009-11-15 10:17:21 +00:00
Christophe Dumez
0a1ae18412 - Remove outdated program preferences 2009-11-14 14:18:32 +00:00
Christophe Dumez
f7c196dbcf - Implemented asynchronous hostname resolution in Peer list 2009-11-14 13:33:55 +00:00