A packet decoder/encoder written in Erlang