Anoma.Node.Transport.TCP.Connection (Anoma v0.25.0)

I am the TCP connection process. I manage a tcp connection with a remote node.

Summary

Types

Shorthand type for socket.

Shorthand type for port number.

t()

I am the state of a TCP connection.

Functions

Returns a specification to start this module under a supervisor.

Types

@type hostname() :: :inet.socket_address() | :inet.hostname()

Shorthand type for socket.

Link to this type

port_number()

@type port_number() :: :inet.port_number()

Shorthand type for port number.

@type t() :: %Anoma.Node.Transport.TCP.Connection{
  callers: %{required(GenServer.from()) => binary()},
  node_id: String.t() | nil,
  socket: port() | nil
}

I am the state of a TCP connection.

My fields contain information to facilitate the TCP connection with a remote node.

Fields

  • :socket - The socket of the connection.
  • :node_id - The key of this router. This value is used to announce myself to other
                    nodes.

Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

start_link(args)