
10 Jan
2006
10 Jan
'06
12:49 a.m.
Yuval Ronen wrote: [SNIP]
Chris was right about this one, too. The main idea was parsing IP addresses in a dot notation form. The Microsoft inet_addr() function I used to use, reserved one IP address (255.255.255.255 IIRC) to indicate a parse error, and that wasn't acceptable in my case.
inet_addr is deprecated (for exactly this reason) in favor of inet_ntop, which is standard. If this is not present in win32 (I don't remember), getaddrinfo is. Both of the latter work transparently with IPv4 and IPv6. -- Pedro LamarĂ£o