Macrina

Saint Macrina, patron of Robotics, ora pro nobis

UNDER CONSTRUCTION! It's still a rough draft that I'm ripping to shreds constantly. LMK if you'd like this to change

Overview

Macrina.Endpoint

A thin GenServer wrapper around :gen_udp. Given an IP and port, any incoming UDP packets at that port will be sent to the Endpoint. This is done via GenServer's built-in handle_info functionality.

Macrina.Connection.Server

A GenServer that represents a connection from the local Endpoint that started it to some other Endpoint. Given an IP, port, and Handler module, this process serves two important functions:

Macrina.Message

Used for encoding and decoding CoAP messages, defining a struct for in memory representation