dustin/go-coap — pull request #7 by rjayatilleka (2013-12-05 06:21:07+00:00)
Title: Iss3

Fix of issue 3.

Decode now actually decodes the token.
Encode makes sure token is of length 0-8 bytes. If the token is too long, it is truncated. A token length of 8 is written and first 8 bytes of token are written.