gethostbyaddr example

Brian Somers brian at Awfulhak.org
Fri Jan 28 01:23:36 GMT 2000


> Hello,
> 
> Does anyone have an example of gethosybyaddr working in FreeBSD ? I am
> unable to get this function to work and always get 'dereferencing pointer
> for cast integer'.

Take a look at realhostname() in libutil.

> Gary
> 
> --
> Gary Brewer
> gary at ukug.freebsd.org.uk
> http://ukug.freebsd.org.uk

-- 
Brian <brian at Awfulhak.org>                        <brian at FreeBSD.org>
      <http://www.Awfulhak.org>                   <brian at OpenBSD.org>
Don't _EVER_ lose your sense of humour !          <brian at FreeBSD.org.uk>







More information about the Ukfreebsd mailing list