ExSDP.Address (ExSDP v0.7.0) View Source

Module representing address used in connection-data and origin.

Link to this section Summary

Link to this section Types

Specs

fqdn() :: {:IP4 | :IP6, binary()}

Specs

t() :: :inet.ip_address() | fqdn()

Link to this section Functions

Specs

get_addrtype(t()) :: :IP4 | :IP6

Specs

parse_address(binary()) :: {:ok, t()} | {:error, :invalid_address}
Link to this function

parse_addrtype(addrtype)

View Source

Specs

parse_addrtype(binary()) :: {:ok, :IP4 | :IP6} | {:error, :invalid_addrtype}
Link to this function

serialize_address(address)

View Source

Specs

serialize_address(t()) :: binary()