Requiem.Address (requiem v0.4.0)

Link to this section Summary

Link to this section Types

Specs

t() :: %Requiem.Address{
  host: :inet.ip_address(),
  port: :inet.port_number(),
  raw: nil | term()
}

Link to this section Functions

Link to this function

from_binary(data)

Specs

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

from_rust_peer(peer)

Specs

from_rust_peer(term()) :: t()
Link to this function

new(host, port, raw \\ nil)

Specs

new(:inet.ip_address(), :inet.port_number(), term() | nil) :: t()
Link to this function

same?(addr1, addr2)

Specs

same?(t(), t()) :: boolean()
Link to this function

to_binary(address)

Specs

to_binary(t()) :: binary()
Link to this function

to_udp_header(address)

Specs

to_udp_header(t()) :: list()