
24 Jun
2010
24 Jun
'10
5:55 p.m.
Anno domini 2010 Daniel P. Berrange scripsit:
Never use gethostbyname in any new code. It is long since obsolete, not thread safe and is hardcoded to only work with IPv4.
There is a good exmaple of how to use the modern replacemenbt, getaddrinfo(), to resolve hostnames here:
Oh, sorry, I wasn't aware of that. Thank you for the hint. Ciao Max -- Alles sollte so einfach wie möglich gemacht sein. Aber nicht einfacher. (Einstein)