I'm writing a cross platform { read posix sockets & winsock } c++ wrapper for an app i'm making.
(yes i know there are some on the net.....but i'm doing it from scratch for the adventure)
The problem is inet_pton() is missing on windows.
M$ decided to provide a alternative but it's only supported on vista and beyond.
Considering that IPv4 is more widespread that v6 and that the "return -1 bug" depends on the back end in use, if you were to code the same wrapper and wanted to make it as seamless as possible (featurewise),
would you skip it in favour of inet_addr()?
_______________________________________________
In programming, as in everything else, to be in error is to be reborn.
_______________________________________________