14 using namespace folly;
19 void PassThroughTransportFilter::getReadBuffer(
void** bufReturn,
21 callback_->getReadBuffer(bufReturn, lenReturn);
24 void PassThroughTransportFilter::readDataAvailable(
size_t len)
noexcept {
28 void PassThroughTransportFilter::readEOF()
noexcept {
33 void PassThroughTransportFilter::readErr(
41 void PassThroughTransportFilter::setReadCB(
45 setCallbackInternal(callback);
49 PassThroughTransportFilter::getReadCallback()
const {
50 return call_->getReadCallback();
56 call_->write(callback, buf, bytes, flags);
59 void PassThroughTransportFilter::writev(
62 call_->writev(callback, vec, count, flags);
65 void PassThroughTransportFilter::writeChain(
68 call_->writeChain(callback,
std::move(iob), flags);
76 void PassThroughTransportFilter::closeNow() {
81 void PassThroughTransportFilter::closeWithReset() {
82 call_->closeWithReset();
86 void PassThroughTransportFilter::shutdownWrite() {
87 call_->shutdownWrite();
90 void PassThroughTransportFilter::shutdownWriteNow() {
91 call_->shutdownWriteNow();
94 bool PassThroughTransportFilter::good()
const {
98 bool PassThroughTransportFilter::readable()
const {
99 return call_->readable();
102 bool PassThroughTransportFilter::connecting()
const {
103 return call_->connecting();
107 return call_->error();
110 void PassThroughTransportFilter::attachEventBase(
EventBase* eventBase) {
111 call_->attachEventBase(eventBase);
114 void PassThroughTransportFilter::detachEventBase() {
115 call_->detachEventBase();
118 bool PassThroughTransportFilter::isDetachable()
const {
119 return call_->isDetachable();
126 void PassThroughTransportFilter::setSendTimeout(
uint32_t milliseconds) {
127 call_->setSendTimeout(milliseconds);
130 uint32_t PassThroughTransportFilter::getSendTimeout()
const {
131 return call_->getSendTimeout();
134 void PassThroughTransportFilter::getLocalAddress(
136 call_->getLocalAddress(address);
139 void PassThroughTransportFilter::getPeerAddress(
141 call_->getPeerAddress(address);
144 void PassThroughTransportFilter::setEorTracking(
bool track) {
145 call_->setEorTracking(track);
148 size_t PassThroughTransportFilter::getAppBytesWritten()
const {
149 return call_->getAppBytesWritten();
151 size_t PassThroughTransportFilter::getRawBytesWritten()
const {
152 return call_->getRawBytesWritten();
154 size_t PassThroughTransportFilter::getAppBytesReceived()
const {
155 return call_->getAppBytesReceived();
157 size_t PassThroughTransportFilter::getRawBytesReceived()
const {
159 return call_->getRawBytesReceived();
void write(const T &in, folly::io::Appender &appender)
constexpr detail::Map< Move > move
EventBase * getEventBase()
—— Concurrent Priority Queue Implementation ——
requires E e noexcept(noexcept(s.error(std::move(e))))
requires And< SemiMovable< VN >... > &&SemiMovable< E > auto error(E e)
EventBase * getEventBase() override
Implements the IOExecutor interface.
folly::Function< void()> callback_
int close(NetworkSocket s)