By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,105 Members | 2,300 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,105 IT Pros & Developers. It's quick & easy.

why gethostbyaddr() is not safe?

P: 1
hi,
I came to know that gethostbyaddr is deprecated in Visual Studio 2005 by the introduction of getnameinfo function.
Can i know the reason for the deprecation of gethostbyaddr function.
Is there any security issues related with this function?
Also came to know that calling this function is not thread safe.
I am not able to get the exact reason for not using gethostbyaddr function.
Feb 15 '08 #1
Share this Question
Share on Google+
1 Reply


P: 90
hi,
I came to know that gethostbyaddr is deprecated in Visual Studio 2005 by the introduction of getnameinfo function.
Can i know the reason for the deprecation of gethostbyaddr function.
Is there any security issues related with this function?
Also came to know that calling this function is not thread safe.
I am not able to get the exact reason for not using gethostbyaddr function.
gethostbyaddr is not a thread safe fun.., i heard something gethostbyaddr leaks memory in Windows..
i don't know abt VC++, but gethostbyaddr,getservbyport these
2 functions functionality, you can do by using only getnameinfo( Ref RFC 2553).

Regards,
Arul
Feb 15 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.