Re: DNS Lookup

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Fri, 28 Apr 2000 21:33:10 +0100, Thomas Parslow (PatRat)
<patrat at INAME.COM> wrote:

>constant WSOCK32 = open_dll("wsock32.dll")
>atom gethostbyname
>gethostbyname =  define_c_func(WSOCK32,"gethostbyname",{C_LONG},C_LONG)
>memDNS = allocate_string("www.infoseek.com")
>? c_func(dllgethostbyname,{memDNS})
>free(memDNS)
>

>? c_func(dllgethostbyname,{memDNS})

shouldn't this be c_func(gethostbyname,{memDNS})

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu