Skip navigation.
Home
The QNX Community Portal

View topic - "getipnodebyname" and "freehostent"

"getipnodebyname" and "freehostent"

Read-only archive of qnx.porting (Discuss migrating applications from QNX4, VxWorks, PSOS, or Linux to QNX Neutrino) at inn.qnx.com

"getipnodebyname" and "freehostent"

Postby mkamthan » Tue Jan 23, 2007 10:32 am

I'm getting warnings when I compile my code on QNX 6.3.0, for the functions, "getipnodebyname" and "freehostent". It says "implicit declaration of function".

I'm using the gcc compiler and also using IPv6.
For IPv6, I'm using the <netinet6/in6.h>.
Am I doing it the correct way?
Are these functions supported, if not then what is their equivalent on QNX?
Please help...
mkamthan
New Member
 
Posts: 2
Joined: Tue Jan 23, 2007 9:54 am

Re: "getipnodebyname" and "freehostent"

Postby seanb » Wed Jan 24, 2007 8:58 pm

mkamthan <kamthan83@yahoo-dot-com.no-spam.invalid> wrote:
I'm getting warnings when I compile my code on QNX 6.3.0, for the
functions, "getipnodebyname" and "freehostent".
It says "implicit declaration of function".

I'm using the gcc compiler and also using IPv6.
For IPv6, I'm using the <netinet6/in6.h>.
Am I doing it the correct way?
Are these functions supported, if not then what is their equivalent
on QNX?
Please help...

Use getaddrinfo() and freeaddrinfo() instead.

-seanb
seanb
QNX Master
 
Posts: 133
Joined: Fri Jul 28, 2006 5:36 pm

RE: Re: "getipnodebyname" and "freehostent&qu

Postby mkamthan » Thu Jan 25, 2007 4:59 am

[quote="seanb"]mkamthan &lt;kamthan83@yahoo-dot-com.no-spam.invalid&gt; wrote:
[quote]IThanks a lot ...that worked.... :)
mkamthan
New Member
 
Posts: 2
Joined: Tue Jan 23, 2007 9:54 am


Return to qnx.porting

Who is online

Users browsing this forum: No registered users and 1 guest

cron