wavii/darner — pull request #6 by erikfrey (2012-08-16 08:58:45+00:00)
Title: Clean streams

@nova77 after reviewing the code I agree that boost::optional isn't really working. It was forcing me to explicitly call `reset()` all over the handler. Instead I've changed the stream classes to have a more explicit opened/closed state, and when streams are destroyed the naturally close. This fits better with the model that when a conn hangs up, the dtor cleans up.

I also cleaned up some nomenclature and some of the comments in the queue class.