38 std::unique_ptr<folly::IOBuf>&& iob,
40 writeChain(callback, std::shared_ptr<folly::IOBuf>(iob.release()),
flags);
88 readDataAvailable_(
size);
93 return isBufferMovable_();
96 MOCK_METHOD1(readBufferAvailable_,
void(std::unique_ptr<folly::IOBuf>&));
MOCK_METHOD3(writeChain, void(WriteCallback *, std::shared_ptr< folly::IOBuf >, WriteFlags))
void readBufferAvailable(std::unique_ptr< folly::IOBuf > readBuf) noexceptoverride
virtual const AsyncTransportWrapper * getWrappedTransport() const
virtual size_t getAppBytesReceived() const =0
size_t readBuf(Buf &buf, folly::io::Cursor &cursor)
void writeChain(WriteCallback *callback, std::unique_ptr< folly::IOBuf > &&iob, WriteFlags flags=WriteFlags::NONE) override
ReadCallback * getReadCallback() const override=0
void writeSuccess() noexceptoverride
virtual std::string getSecurityProtocol() const
MOCK_METHOD1(setReadCB, void(ReadCallback *))
virtual size_t getRawBytesWritten() const =0
virtual bool isEorTrackingEnabled() const =0
bool isBufferMovable() noexceptoverride
virtual void shutdownWrite()=0
void readDataAvailable(size_t size) noexceptoverride
virtual uint32_t getSendTimeout() const =0
—— Concurrent Priority Queue Implementation ——
requires E e noexcept(noexcept(s.error(std::move(e))))
MOCK_CONST_METHOD1(getLocalAddress, void(folly::SocketAddress *))
virtual void setSendTimeout(uint32_t milliseconds)=0
void onReplaySafe() noexceptoverride
virtual void closeNow()=0
virtual void shutdownWriteNow()=0
virtual bool good() const =0
virtual size_t getRawBytesReceived() const =0
virtual EventBase * getEventBase() const =0
constexpr auto size(C const &c) -> decltype(c.size())
virtual void detachEventBase()=0
void setReadCB(ReadCallback *callback) override=0
virtual bool readable() const =0
SocketAddress getPeerAddress() const
void writeErr(size_t size, const AsyncSocketException &ex) noexceptoverride
virtual bool isDetachable() const =0
virtual bool connecting() const =0
void readEOF() noexceptoverride
MOCK_CONST_METHOD0(getReadCallback, ReadCallback *())
virtual void setEorTracking(bool track)=0
SocketAddress getLocalAddress() const
MOCK_METHOD0(close, void())
virtual void closeWithReset()
void writev(WriteCallback *callback, const iovec *vec, size_t count, WriteFlags flags=WriteFlags::NONE) override=0
virtual void setReplaySafetyCallback(ReplaySafetyCallback *callback)
virtual void attachEventBase(EventBase *eventBase)=0
void readErr(const AsyncSocketException &ex) noexceptoverride
#define MOCK_METHOD2(m,...)
virtual bool isReplaySafe() const
virtual bool error() const =0
void write(WriteCallback *callback, const void *buf, size_t bytes, WriteFlags flags=WriteFlags::NONE) override=0
virtual size_t getAppBytesWritten() const =0
MOCK_METHOD4(write, void(WriteCallback *, const void *, size_t, WriteFlags))