ip Address Converters: Project Web Hosting - Open Source Software

ip Address Converters

Users

Code here

Project detail

Project Information

About this project:

This is the ip Address Converters project

This project was registered on SourceForge.net on Aug 17, 2013, and is described as follows:

Functions for

  • ipv4 address string to integer.
  • Integer to ipv4 address string
  • ipv6 address string to integer.
  • Integer to ipv6 address string
Similar to inet_pton and inet_ntop but separate functions for ipv4 and ipv6. Versions in C, Qt.C++, Perl, Ruby, Tcl, Python, and php.

Development

ipv6 converters were required for a another project inbits but inet_ntop and inet_pton were not available in compiler package being used, and proved difficult to get/install. So these were written, intially in Qt.C++ and Python, later in C Perl Ruby php and Tcl.

Integer types

C and Qt.C++ use two element array of uint64_t integers, for ipv6 and a single uint32_t for ipv4.
Ruby, Tcl-8.5, and Python use their built in integer types. which cope with (2^128)-1.
Perl-ipv4 uses inbuilt integer type. Perl ipv6 routines use Math::BigInt => try gmp.
php uses gmp numbers.

Project Web Hosted by SourceForge.net

About - Legal - Help