Short hostnames in URLs
Lubos Lunak
l.lunak at sh.cvut.cz
Wed Aug 7 09:02:00 BST 2002
Dne út 6. srpen 2002 15:53 Marc Mutz napsal(a):
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Tuesday 06 August 2002 15:48, Lubos Lunak wrote:
> > + for(;;)
> > + {
> > + qApp->processEvents();
>
> EEEK. My eyes hurt ;-)
Mine too. I tried to come up with something better, but this seemed to me the
way that sucks the least.
>
> > + if( query_done )
> > + break;
> > + struct timespec tm;
> > + tm.tv_sec = 0;
> > + tm.tv_nsec = 1000000000;
> > + nanosleep( &tm, NULL );
> > + }
>
> Isn't there a way that does _not_ use QApp::processEvents()?
>
Sure. Would you prefer the one starting another process, or the one starting
another thread, or the one possibly blocking in gethostbyname()?
Dne út 6. srpen 2002 17:28 Waldo Bastian napsal(a):
[snip]
>
> QDns doesn't check /etc/hosts, does it? I rather not see it used directly
> in code since it will result in inconsistent lookup results.
It does check it.
--
Lubos Lunak
llunak at suse.cz ; l.lunak at kde.org
http://dforce.sh.cvut.cz/~seli
More information about the kde-core-devel
mailing list