[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: RFC: Drop notice: KNetwork
From: Thiago Macieira <thiago () kde ! org>
Date: 2007-03-01 10:14:13
Message-ID: 200703011114.14382.thiago () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/mixed)]
Andreas Aardal Hanssen wrote:
>If you think of it, it just makes sense. Why should everyone who uses
>gethostbyname() have to know that occasionally, they have to call
> res_init()?
I agree. But the bug is there.
This is Mandriva Cooker, running glibc 2.4, using yesterday's Snapshot.
$ cat /etc/resolv.conf
[empty]
$ /tmp/nettest/nettest
()
← at this point, I restore a working resolv.conf and press Enter
()
Source code is attached.
>> This will not translate to other systems. Will we have to?
>
>What systems?
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
["main.cpp" (text/x-c++src)]
#include <QHostInfo>
#include <QDebug>
#include <stdio.h>
int main(int argc, char **argv)
{
do
{
QHostInfo result = QHostInfo::fromName("www.trolltech.com");
qDebug() << result.addresses();
getchar();
} while (true);
}
[Attachment #6 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic