Oh, the other idea I had was to create a still new class in kdelibs, called KHostname. Its constructor would receive a text hostname and then someone could call KHostname::lookup() and receive all the data in a QList<KSocketAddress>
Problem: I'd use getaddrinfo() to do the lookup, which would either be:
- a repetition of the code needed in KExtendedSocket to do the same loookup
- called by KExtendedSocket to do the lookup, which in turn means KHostname would need port/services
Given that, I am in doubt whether this class would be better integrated into KExtendedSocket alone.