why gethostbyaddr() is not safe?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lakshmiraja
    New Member
    • Feb 2008
    • 1

    why gethostbyaddr() is not safe?

    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.
  • Arulmurugan
    New Member
    • Jan 2008
    • 90

    #2
    Originally posted by lakshmiraja
    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,g etservbyport these
    2 functions functionality, you can do by using only getnameinfo( Ref RFC 2553).

    Regards,
    Arul

    Comment

    Working...