Anoma.Node.Examples.ETransport.ETcp (Anoma v0.29.0)
Summary
Types
I am the type of the contexts in this module.
Functions
I create a new tcp server for the node with the given name.
I create a tcp connection between two nodes and assert that they discover eachother.
I create a tcp client for the given node and connect to the server node.
I create a tcp server for the given node.
Types
Link to this type
contexts()
@type contexts() :: %{ required(atom()) => Anoma.Node.Examples.ETransport.ETcp.Context.t() }
I am the type of the contexts in this module.
Functions
Link to this function
connect_nodes()
@spec connect_nodes() :: {Anoma.Node.Examples.ENode.t(), Anoma.Node.Examples.ENode.t()}
I create a new tcp server for the node with the given name.
Link to this function
connect_nodes(arg)
@spec connect_nodes({Anoma.Node.Examples.ENode.t(), Anoma.Node.Examples.ENode.t()}) :: {Anoma.Node.Examples.ENode.t(), Anoma.Node.Examples.ENode.t()}
I create a tcp connection between two nodes and assert that they discover eachother.
Link to this function
create_tcp_client(list)
@spec create_tcp_client( client: Anoma.Node.Examples.ENode.t(), server: Anoma.Node.Examples.ENode.t() ) :: [client: Anoma.Node.Examples.ENode.t(), server: Anoma.Node.Examples.ENode.t()]
I create a tcp client for the given node and connect to the server node.
Link to this function
create_tcp_listener(node)
@spec create_tcp_listener(Anoma.Node.Examples.ENode.t()) :: Anoma.Node.Examples.ENode.t()
I create a tcp server for the given node.