integer_to_ip v0.1.0 IntegerToIp

Integer to ip address (and the opposite) for Elixir. This module helps you to get an ip address with an integer (and the opposite)

Examples

iex(1)> IntegerToIp.itoa(2066891757)

“123.50.67.237”

iex(2)> IntegerToIp.itoa(“123.50.67.237”)

2066891757

Summary

Functions

Takes a string (ip) and transform it into an integer

Takes a integer and transform it into an ip address (string)

Functions

atoi(ip)
Takes a string (ip) and transform it into an integer.
ipcalc(n, i)
itoa(n)

Takes a integer and transform it into an ip address (string).