Local node IP address

Hi,
I’m trying to read inside my program (written in C++)
the IP address of my node (en0), is there a QNX
system function or a way to obtain this address ?
(that is provided by a DHCP server)
Thanks,
AR

You can use the SIOCGIFADDR ioctl.

-seanb

SECMATNT <NOSPAMinfo.secmat@wanadoo.fr> wrote:

Hi,
I’m trying to read inside my program (written in C++)
the IP address of my node (en0), is there a QNX
system function or a way to obtain this address ?
(that is provided by a DHCP server)
Thanks,
AR