Anoma.Client.Connection.TCP (Anoma v0.29.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.
I am the state of a TCP connection.
Functions
Returns a specification to start this module under a supervisor.
Types
Link to this type
hostname()
@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.Client.Connection.TCP{ callers: %{required(GenServer.from()) => binary()}, node_id: String.t() | nil, remote_node_id: Anoma.Protobuf.NodeInfo.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 othernodes.
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)
@spec start_link([any()]) :: GenServer.on_start()