dominictarr: the api for writing outgoing packets might could use a bit more documentation