ripple/rippled — pull request #737 by vinniefalco (2014-11-25 00:02:44+00:00)
Title: Refactor protocol message parsing

Refactor protocol message parsing: …
This replaces the stateful class parser with a stateless free function.
The protocol buffer message is parsed using a ZeroCopyInputStream.

* Invoke method is now a free function.
* Protocol handler doesn't need to derive from an abstract interface
* Only up to one message is processed at a time by the invoker.
* Remove error_code return from the handler's message processing functions.
* Add ZeroCopyInputStream implementation that wraps a BufferSequence.
* Free function parses up to one protocol message and calls the handler

Reviewers: @scottschurr @nbougalis

Note: The first commit is from another branch