Anoma.Node.Transport.Proxy.TransportProtocol (Anoma v0.34.0)

I am the implementation of the transport protocol engine. https://specs.anoma.net/pr-320/arch/node/engines/transport_protocol.html

A Transport Protocol engine is responsible for accepting and initiating transport connections for one specific transport protocol, such as QUIC or TLS.

Summary

Types

t()

I am the state of Anoma.Node.Transport.TransportProtocol.

Types

t()

@type t() :: %Anoma.Node.Transport.Proxy.TransportProtocol{
  address: address(),
  node_id: String.t(),
  remote_node_id: String.t()
}

I am the state of Anoma.Node.Transport.TransportProtocol.

Functions

call(transport_protocol, message)

cast(transport_protocol, message)

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

event(transport_protocol, event)

init(args)

@spec init(startup_options()) ::
  {:ok, t()}
  | {:ok, t(), timeout() | :hibernate | {:continue, continue_arg :: term()}}
  | :ignore
  | {:stop, reason :: term()}

start_link(args \\ [])

@spec start_link(startup_options()) :: GenServer.on_start()