nexus v0.1.0 Nexus.Transport behaviour View Source

Link to this section Summary

Link to this section Types

Link to this section Callbacks

Link to this callback accept(socket, integer) View Source
accept(socket(), integer()) :: {:ok, socket()} | {:error, any()}
Link to this callback acknowlege(socket, integer) View Source
acknowlege(socket(), integer()) :: :ok
Link to this callback controlling_process(socket, pid) View Source
controlling_process(socket(), pid()) :: :ok | {:error, atom()}
Link to this callback listen(integer, list) View Source
listen(integer(), list()) :: {:ok, socket()} | {:error, any()}
Link to this callback messages() View Source
messages() :: {atom(), atom(), atom()}
Link to this callback peer_name(socket) View Source
peer_name(socket()) :: {:ok, {any(), any()}} | {:error, any()}
Link to this callback send(socket, iodata) View Source
send(socket(), iodata()) :: :ok | {:error, atom()}
Link to this callback send_file(socket, binary) View Source
send_file(socket(), binary()) :: :ok | {:error, atom()}
Link to this callback send_file(socket, binary, integer, arg3, list) View Source
send_file(socket(), binary(), integer(), integer() | :all, list()) ::
  :ok | {:error, atom()}
Link to this callback set_opts(socket, integer) View Source
set_opts(socket(), integer()) :: {:ok, socket()} | {:error, any()}