28 std::unique_ptr<SocketPeeker, folly::DelayedDestruction::Destructor>;
67 folly::AsyncSocketException::AsyncSocketExceptionType::END_OF_FILE;
bool isBufferMovable() noexceptoverride
virtual ~Callback()=default
std::vector< uint8_t > peekBytes_
constexpr detail::Map< Move > move
requires E e noexcept(noexcept(s.error(std::move(e))))
void readEOF() noexceptoverride
void readDataAvailable(size_t len) noexceptoverride
folly::AsyncSocket & socket_
constexpr Range< Iter > range(Iter first, Iter last)
virtual void peekError(const folly::AsyncSocketException &ex) noexcept=0
NetworkSocket socket(int af, int type, int protocol)
virtual void peekSuccess(std::vector< uint8_t > data) noexcept=0
void setReadCB(ReadCallback *callback) override
virtual void setPreReceivedData(std::unique_ptr< IOBuf > data)
void readErr(const folly::AsyncSocketException &ex) noexceptoverride
SocketPeeker(folly::AsyncSocket &socket, Callback *callback, size_t numBytes)
ReadCallback * getReadCallback() const override
static std::unique_ptr< IOBuf > copyBuffer(const void *buf, std::size_t size, std::size_t headroom=0, std::size_t minTailroom=0)
void getReadBuffer(void **bufReturn, size_t *lenReturn) override
static constexpr uint64_t data[1]
std::unique_ptr< SocketPeeker, folly::DelayedDestruction::Destructor > UniquePtr