18 using UniquePtr = std::unique_ptr<LocalTransport, Destructor>;
59 LOG(
FATAL) <<
"only writeChain() supported";
64 std::unique_ptr<folly::IOBuf>&& buf,
66 written_ += buf->computeChainDataLength();
78 LOG(
FATAL) <<
"only writeChain() supported";
virtual void readBufferAvailable(std::unique_ptr< IOBuf >) noexcept
std::unique_ptr< folly::IOBuf > split(size_t n)
void shutdownWriteNow() override
void getLocalAddress(folly::SocketAddress *) const override
void append(std::unique_ptr< folly::IOBuf > &&buf, bool pack=false)
folly::IOBufQueue readBuf_
void write(WriteCallback *, const void *, size_t, folly::WriteFlags=folly::WriteFlags::NONE) override
size_t getRawBytesWritten() const override
bool connecting() const override
void setSendTimeout(uint32_t) override
void writeChain(WriteCallback *callback, std::unique_ptr< folly::IOBuf > &&buf, folly::WriteFlags=folly::WriteFlags::NONE) override
ReadCallback * getReadCallback() const override
constexpr detail::Map< Move > move
size_t getAppBytesWritten() const override
virtual bool isBufferMovable() noexcept
void getPeerAddress(folly::SocketAddress *) const override
std::unique_ptr< folly::IOBuf > move()
void closeWithReset() override
uint32_t getSendTimeout() const override
folly::EventBase * getEventBase() const override
void receiveData(std::unique_ptr< folly::IOBuf > buf)
void attachEventBase(folly::EventBase *eventBase) override
static Options cacheChainLength()
bool good() const override
bool isDetachable() const override
void detachEventBase() override
folly::Function< void()> trickleCallback_
bool isEorTrackingEnabled() const override
void shutdownWrite() override
void setPeer(LocalTransport *peer)
std::size_t computeChainDataLength() const
bool error() const override
std::unique_ptr< LocalTransport, Destructor > UniquePtr
void setEorTracking(bool) override
void setReadCB(ReadCallback *callback) override
virtual void writeSuccess() noexcept=0
void writev(WriteCallback *, const iovec *, size_t, folly::WriteFlags=folly::WriteFlags::NONE) override
void setTrickle(bool trickle, folly::Function< void()> callback=nullptr)
size_t getRawBytesReceived() const override
bool readable() const override
size_t getAppBytesReceived() const override