[svlug] gethostbyname()

J C Lawrence claw at kanga.nu
Sat Jan 26 23:01:01 PST 2002


On Sat, 26 Jan 2002 20:04:22 -0800 
Erik Fears <strtok at softhome.net> wrote:

> The problem I found is that gethostbyname() blocks ( I have no
> idea what the timeout is ). I'm wondering if any linux C
> programmers (or UNIX programmers) on this list know a way to
> resolve a host in a way that will not block (without using a
> seperate thread, or writing the DNS client from scratch).

You're going to have to write your own implementation of
gethostbyname().  

-- 
J C Lawrence                
---------(*)                Satan, oscillate my metallic sonatas. 
claw at kanga.nu               He lived as a devil, eh?		  
http://www.kanga.nu/~claw/  Evil is a name of a foeman, as I live.




More information about the svlug mailing list