Commit 6127c31a authored by Christian Hergert's avatar Christian Hergert
Browse files

protocol: add protocol flags and events with simple encoder.

This can either compose to a buffer or use iovec directly with writev().
In the most simple case, writev() is just barely faster than buffering.
In the pathological case, where much buffer resizing will occur, it is
a lot faster and easier on the memory allocator.

This should allow for building both a sync and async client eventually.
parent 3438a2bb
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment