elevator v1.0.0 Network View Source

Broadcasting of IP and listening to other IPs.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Handles received UDP messages

Initialize the GenServer by starting node and opening UDP socket at port @udpPort.

Starts the GenServer.

Closes the UDP socket upon termination of GenServer.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

getElevatorID(num \\ "")

View Source

Handles received UDP messages

Initialize the GenServer by starting node and opening UDP socket at port @udpPort.

Starts the GenServer.

Closes the UDP socket upon termination of GenServer.