i'm doing a bittorrent client in erlang
task: parse a lump of raw binary data from a socket into a list of bittorrent messages
my original implementation worked but was messy; the logic for parsing individual bittorrent messages was tangled with the logic for accumulating them into a list [should show this, ought to be somewhere in github.com/happy4crazy/ebc]