Network.Listen (ElevatorProject v0.1.0)
Listens for messages from other nodes, and attempts to connect to the cluster upon reception.
Link to this section Summary
Link to this section Functions
Link to this function
child_spec(arg)
Returns a specification to start this module under a supervisor.
arg
is passed as the argument to Task.start_link/1
in the :start
field
of the spec.
For more information, see the Supervisor
module,
the Supervisor.child_spec/2
function and the Supervisor.child_spec/0
type.
Link to this function
init(recv_port)
init/1
opens a socket and starts listening by calling listen/1
.
Parameters
- recv_port: Port number :: integer()
Return
- no_return