[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gethostbyname function
- Date: Mon, 09 Aug 1999 13:49:36 +0200
- From: raguet at crf.canon.fr (Emmanuel Raguet)
- Subject: gethostbyname function
Hello everybody
I have a question about network features.
I want to obtain the IP address of my target.
I use gethostname to obtain the name of the target. It
works well.
When I call gethostbyname(server_name), I obtain NULL
because /etc/hosts cannot be opened.
Currently I use the field ip_address in the rtems_bsdnet_ifconfig
structure. But I want to know if the gethostbyname (and others like
gethostbyaddr,...) works and how to enable it.
Thanks in advance,
-- Emmanuel
| Emmanuel RAGUET |
_ | CANON CRF - Communication Dept. | _
/ )| Tel: +33(0)2 99 87 96 47 |( \
/ / | Fax: +33(0)2 99 84 11 30 | \ \
_( (_ | _ http://www.crf.canon.fr _ | _) )_
(((\ \>|_/ )_________________________( \_|</ /)))
(\\\\ \_/ / \ \_/ ////)
\ / \ /
\ _/ \_ /
/ / \ \