hi all
is there any way to ip caching in Qt ??
regards
hi all
is there any way to ip caching in Qt ??
regards
Life is about making the right decisions and moving on.
Sure.
Just do the host address lookup manually using QHostInfo and save the host name -> host address mapping in a QHash or QMap.
Then check this container for cached lookups before creating sockets or URLs
Cheers,
_
... just bear in mind such caching might get you nowhere because the same name might resolve to different IPs every time you resolve the address. As far as I can see Qt has no facilities to determine when to expire the cache (it does allow to resolve one name to more than one IP though so at least there you should be safe).
thanks Mr wysota for your replying.
Life is about making the right decisions and moving on.
Bookmarks