InetAton
Converts the IP address from the IPv4 numbers-and-dots notation into a “hostlong” in network byte order.
This is an elixir port of an erlang inet_aton snippet made available as a package.
Installation
This package can be installed
by adding inet_aton to your list of dependencies in mix.exs:
def deps do
[
{:inet_aton, "~> 0.1.0"}
]
endUsage
require InetAton
InetAton.convert("127.0.0.1") # 2130706433