Add a buffer callback to AsyncSocket
authorYang Chi <yangchi@fb.com>
Wed, 11 Nov 2015 21:32:04 +0000 (13:32 -0800)
committerfacebook-github-bot-9 <folly-bot@fb.com>
Wed, 11 Nov 2015 22:20:22 +0000 (14:20 -0800)
commit7749a46977a772b1f8d310c055875a90bed3efa9
tree43a545ffb79d78fa3cb034d1cb14bd65ddb5b683
parent596d6f6d425afc4b2d17bd703d9d3debf20795bd
Add a buffer callback to AsyncSocket

Summary: This is probably easier than D2612490. The idea is just to add a callback to write, writev and writeChain in AsyncSocket, so upper layer can know when data starts to buffer up

Reviewed By: mzlee

Differential Revision: D2623385

fb-gh-sync-id: 98d32ca83871aaa4f6c75a769b5f1bf0b5d62c3e
folly/io/async/AsyncPipe.cpp
folly/io/async/AsyncPipe.h
folly/io/async/AsyncSocket.cpp
folly/io/async/AsyncSocket.h
folly/io/async/AsyncTransport.h
folly/io/async/test/AsyncSocketTest.h
folly/io/async/test/AsyncSocketTest2.cpp
folly/io/async/test/MockAsyncTransport.h