View Source ExSDP.Address (ExSDP v0.10.1)

Module representing address used in connection-data and origin.

Link to this section Summary

Link to this section Types

@type fqdn() :: {:IP4 | :IP6, binary()}
@type t() :: :inet.ip_address() | fqdn()

Link to this section Functions

@spec get_addrtype(t()) :: :IP4 | :IP6
@spec parse_address(binary()) :: {:ok, t()} | {:error, :invalid_address}
Link to this function

parse_addrtype(addrtype)

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

serialize_address(address)

View Source
@spec serialize_address(t()) :: binary()