Resolver SWIs

Stewart Brodie stewart.brodie at pace.co.uk
Wed Sep 4 17:58:58 BST 2002


In message <82f2c7704b.druck at druck.freeuk.net>
          "David J. Ruck" <druck at druck.org.uk> wrote:

> On 4 Sep 2002 "Stewart Brodie" <stewart.brodie at pace.co.uk> wrote:
> >> Any chance of support for the resolver module SWI's in OSLib?
> >> 
> >> Specifically Resolver_GetHostByName and Resolver_GetHost (ByAddr) and the
> >> hostent structure.
> > 
> > The real problem is that latter call.  Just to make sure everybody is aware
> > of the problems with this module, if anyone thinks that Resolver_GetHost is
> > short for Resolver_GetHostByAddr, they would be wrong.
> 
> Well at least one implementation does have &46001 as Resolver_GetHostByAddr,
> and the naming convention of Resolver_GetHost doesn't help to disambiguate
> it.
> 
> > Resolver_GetHostByName is the blocking lookup, Resolver_GetHost is the
> > asynchronous lookup.  It is not worth supporting any other interface, IMHO.
> > Other resolver modules had the second SWI be the blocking gethostbyaddr()
> > implementation.
> 
> Ok, noted.
> 
> >> Anymore more than that and someone will have to work out what the other
> >> undocumented and contradictary SWI's in various implementations are!
> > 
> > The ANT SWIs are documented - there is (was) a page on their website.
> 
> I think was is the operative word.
> 
> Paul Vigay has a page on his website, can you confirm that
> http://www.vigay.com/cgi-bin/r?a=inet_dns is correct.

That looks right to me.


-- 
Stewart Brodie, Senior Software Engineer    (Views expressed are my own and
Pace Micro Technology PLC                   not those of my employer)
645 Newmarket Road
Cambridge, CB5 8PB, United Kingdom         WWW: http://www.pacemicro.com/



More information about the oslib-user mailing list