AsyncSocket::writeRequest() and its first user wangle::FileRegion
authorJames Sedgwick <jsedgwick@fb.com>
Mon, 8 Jun 2015 15:41:33 +0000 (08:41 -0700)
committerSara Golemon <sgolemon@fb.com>
Tue, 9 Jun 2015 20:20:04 +0000 (13:20 -0700)
commit7dbfd2f877ab8386992e3a8d540e14b3e567e33e
tree7a0dc39c9564f47701ed5c03c958244f0d5f85bf
parent7cae56406bd38fce78099c3c0ec21138aef276e2
AsyncSocket::writeRequest() and its first user wangle::FileRegion

Summary: similar to D2050808, but move the functionality into AsyncSocket itself so that you have a consistent interface and contiguous writes for a single file

Test Plan: added unit, will hook this up to a file server example next

Reviewed By: davejwatson@fb.com

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

FB internal diff: D2084452

Signature: t1:2084452:1433181933:175158618966706db00bf6620cc86ae145d04ecf
folly/Makefile.am
folly/io/async/AsyncSocket.cpp
folly/io/async/AsyncSocket.h
folly/io/async/test/AsyncSocketTest.h [new file with mode: 0644]
folly/io/async/test/AsyncSocketTest2.cpp
folly/wangle/channel/FileRegion.cpp [new file with mode: 0644]
folly/wangle/channel/FileRegion.h [new file with mode: 0644]
folly/wangle/channel/test/FileRegionTest.cpp [new file with mode: 0644]