GSMLG.Socket.Address (GSMLG.Socket v0.1.0)
Link to this section Summary
Functions
Get the addresses for the given host.
Get the addresses for the given host, raising if an error occurs.
Check if an IP address belong to a network
Parse a string to an ip address tuple.
Convert an ip address tuple to a string.
Check if the passed string is a valid IP address.
Link to this section Types
@type t() :: String.t() | charlist() | :inet.ip_address()
Link to this section Functions
Link to this function
for(host, family)
@spec for(t(), :inet.address_family()) :: {:ok, [t()]} | {:error, :inet.posix()}
Get the addresses for the given host.
Link to this function
for!(host, family)
@spec for!(t(), :inet.address_family()) :: [t()] | no_return()
Get the addresses for the given host, raising if an error occurs.
Link to this function
is_in_subnet?(addr, net, netsize)
Check if an IP address belong to a network
Link to this function
parse(text)
@spec parse(t()) :: :inet.ip_address()
Parse a string to an ip address tuple.
Link to this function
to_string(address)
Convert an ip address tuple to a string.
Link to this function
valid?(text)
Check if the passed string is a valid IP address.