inbound/outbound handlers
authorJames Sedgwick <jsedgwick@fb.com>
Thu, 30 Apr 2015 01:04:41 +0000 (18:04 -0700)
committerPraveen Kumar Ramakrishnan <praveenr@fb.com>
Tue, 12 May 2015 00:01:10 +0000 (17:01 -0700)
commit555213ca924f9e5a174cc8efd0f5da8b6c2ad4a9
treea5b71a6e2a0a0b4a2cc0eb43b9cae7ab55cbf284
parentdded90960871719f2ab5e18ce6c7fa41ec2d545a
inbound/outbound handlers

Summary:
Much less copypasta this time around. I wonder if the getters and setters for write flags and read buffer settings are necessary in the new handler types, or even if they belong in the bidirectional handler

I'm all ears for more suggestions on reducing copypasta

I'm going to reorg the code (inl headers etc) in a subsequent diff once this is in - easier to review this way

Test Plan: existing unit, thinking about tests for these changes

Reviewed By: davejwatson@fb.com

Subscribers: fugalh, folly-diffs@, jsedgwick, yfeldblum, chalfant

FB internal diff: D2026522

Tasks: 6836580

Signature: t1:2026522:1430346145:bd7f7770eddce0470e2ac72440fc001cf128df08
folly/wangle/channel/Handler.h
folly/wangle/channel/HandlerContext.h
folly/wangle/channel/OutputBufferingHandler.h
folly/wangle/channel/Pipeline.h
folly/wangle/channel/StaticPipeline.h
folly/wangle/codec/ByteToMessageCodec.h
folly/wangle/codec/CodecTest.cpp
folly/wangle/codec/LengthFieldPrepender.h