View Source ExICE.Candidate (ex_ice v0.8.3)

ICE candidate representation.

Summary

Types

@type t() :: %ExICE.Candidate{
  address: :inet.ip_address() | String.t(),
  base_address: :inet.ip_address() | nil,
  base_port: :inet.port_number() | nil,
  foundation: integer(),
  id: integer(),
  port: :inet.port_number(),
  priority: integer(),
  transport: :udp | :tcp,
  type: type()
}
@type type() :: :host | :srflx | :prflx | :relay

Functions

@spec family(t()) :: :ipv4 | :ipv6
@spec marshal(t()) :: String.t()
@spec unmarshal(String.t()) :: {:ok, t()} | {:error, term()}