View Source ExSDP.Address (ExSDP v1.1.0)

Module representing address used in connection-data and origin.

Summary

Types

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

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()