Requiem.NIF.Socket (requiem v0.4.0)

Link to this section Summary

Link to this section Functions

Link to this function

address_from_string(address)

Specs

address_from_string(binary()) :: {:ok, term()} | {:error, :bad_format}
Link to this function

address_parts(address)

Specs

address_parts(term()) :: {:ok, binary(), non_neg_integer()}

Specs

cpu_num() :: integer()
Link to this function

destroy(socket_ptr)

Specs

destroy(integer()) :: :ok | {:error, :system_error | :not_found}
Link to this function

new(num_node, read_timeout, write_timeout)

Specs

new(integer(), non_neg_integer(), non_neg_integer()) ::
  {:ok, integer()} | {:error, :system_error | :socket_error}
Link to this function

start(socket_ptr, host, port, pid, target_pids)

Specs

start(integer(), binary(), non_neg_integer(), pid(), [pid()]) ::
  :ok | {:error, :system_error | :socket_error}