vdev Knot

Supervises and manages a node.

A node is composed of different parts:

  • Two simple one-for-one supervisors. One for the connectors and one for the clients.
  • A logic process which coordinates everything (See Knot.Logic).
  • A listener which role is to handle incoming connections and be the acceptor (see Knot.Listener).
  • A supervisor in charge of the client processes (See Knot.Client).

Link to this section Summary

Link to this section Types

Link to this type clients()
clients() :: Knot.Via.t | pid
Link to this type connectors()
connectors() :: Knot.Via.t | pid
Link to this type socket()
socket() :: :gen_tcp.socket

Link to this section Functions

Link to this function make_handle(uri_or_address)
Link to this function start(uri_or_address, block)
Link to this function start_link(uri_or_address, block)
start_link(Knot.Via.uri_or_address, Block.t) :: {:ok, pid}