|
Boost : |
From: Pedro Lamarão (pedro.lamarao_at_[hidden])
Date: 2006-01-09 19:49:01
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk