Commit 8f29e483 authored by Subodh Iyengar's avatar Subodh Iyengar Committed by facebook-github-bot-9

Allow underlying transport to be accessible from AsyncTransportWrapper

Summary: Allow underlying transport to be accessible from AsyncTransportWrapper.
There are some code paths where we need access to the real transport from
the AsyncTransportWrapper. This allows us to retrieve the underlying transport
and have clients like HTTPSession use it.

Reviewed By: afrind

Differential Revision: D2609200

fb-gh-sync-id: 2b317d1825a005bb64468f83c64bc3f1c9bdfe2c
parent 7a78293e
...@@ -525,6 +525,14 @@ class AsyncTransportWrapper : virtual public AsyncTransport, ...@@ -525,6 +525,14 @@ class AsyncTransportWrapper : virtual public AsyncTransport,
virtual void writeChain(WriteCallback* callback, virtual void writeChain(WriteCallback* callback,
std::unique_ptr<IOBuf>&& buf, std::unique_ptr<IOBuf>&& buf,
WriteFlags flags = WriteFlags::NONE) override = 0; WriteFlags flags = WriteFlags::NONE) override = 0;
/**
* The transport wrapper may wrap another transport. This returns the
* transport that is wrapped. It returns nullptr if there is no wrapped
* transport.
*/
virtual AsyncTransportWrapper* getWrappedTransport() {
return nullptr;
}
}; };
} // folly } // folly
Markdown is supported
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