siacs/Conversations — pull request #823 by SamWhited (2014-12-30 13:54:37+00:00)
Title: Verify IQ responses

I'm still unsure how I feel about this as a solution (readability wise it's pretty terrible). Thoughts / code review to make sure I'm not leaving any holes open appreciated.

Converting the type to an enum didn't end up being necessary... I wanted some guarantee that you wouldn't get an invalid packet type originally, but I can't remember why. Left it anyways because it prevents developers from assigning invalid packet types inadvertantly in future.