3 Dec 2000 thiagom   » (Journeyer)

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.

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!