Wee! Cider and learning c++ can go together! The code from the last post doesn't work and I needed some more learning of Node, V8 and C++ to get it running. Also, Eclipse helped a lot.
Anyway, adding a inet_pton wrapper to cares_wrap.cc is a success! Its speed is sometimes comparable to what net.isIP had delivered, but the accuracy is through the roof. Which was my aim. net.isIP now even supports IPv6 with IPv4 dotted notation! Probably should have included some tests for that though. https://github.com/snoj/node/commit/275878d2cdc584a3827e83452612c6b0f6c2d63f -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
