|
| PassThroughTransportFilter (bool calls=true, bool callbacks=true) |
|
void | getReadBuffer (void **bufReturn, size_t *lenReturn) override |
|
void | readDataAvailable (size_t len) noexceptoverride |
|
void | readEOF () noexceptoverride |
|
void | readErr (const folly::AsyncSocketException &ex) noexceptoverride |
|
void | setReadCB (folly::AsyncTransportWrapper::ReadCallback *callback) override |
|
folly::AsyncTransportWrapper::ReadCallback * | getReadCallback () const override |
|
void | write (folly::AsyncTransportWrapper::WriteCallback *callback, const void *buf, size_t bytes, folly::WriteFlags flags) override |
|
void | writev (folly::AsyncTransportWrapper::WriteCallback *callback, const iovec *vec, size_t count, folly::WriteFlags flags) override |
|
void | writeChain (folly::AsyncTransportWrapper::WriteCallback *callback, std::unique_ptr< folly::IOBuf > &&iob, folly::WriteFlags flags) override |
|
void | close () override |
|
void | closeNow () override |
|
void | closeWithReset () override |
|
void | shutdownWrite () override |
|
void | shutdownWriteNow () override |
|
bool | good () const override |
|
bool | readable () const override |
|
bool | connecting () const override |
|
bool | error () const override |
|
void | attachEventBase (folly::EventBase *eventBase) override |
|
void | detachEventBase () override |
|
bool | isDetachable () const override |
|
folly::EventBase * | getEventBase () const override |
|
void | setSendTimeout (uint32_t milliseconds) override |
|
uint32_t | getSendTimeout () const override |
|
void | getLocalAddress (folly::SocketAddress *address) const override |
|
void | getPeerAddress (folly::SocketAddress *address) const override |
|
void | setEorTracking (bool track) override |
|
size_t | getAppBytesWritten () const override |
|
size_t | getRawBytesWritten () const override |
|
size_t | getAppBytesReceived () const override |
|
size_t | getRawBytesReceived () const override |
|
| GenericFilter (bool calls, bool callbacks) |
|
| ~GenericFilter () override |
|
void | append (Filter *nextFilter) |
|
An implementation of Transport that passes through all calls and also properly calls setCallback(). This is useful to subclass if you aren't interested in intercepting every function. See AsyncTransport.h for documentation on these methods
Definition at line 31 of file TransportFilter.h.
proxygen::PassThroughTransportFilter::PassThroughTransportFilter |
( |
bool |
calls = true , |
|
|
bool |
callbacks = true |
|
) |
| |
|
inlineexplicit |
By default, the filter gets both calls and callbacks
Definition at line 36 of file TransportFilter.h.
References attachEventBase(), close(), closeNow(), closeWithReset(), connecting(), count, detachEventBase(), error(), getAppBytesReceived(), getAppBytesWritten(), getEventBase(), getLocalAddress(), getPeerAddress(), getRawBytesReceived(), getRawBytesWritten(), getReadBuffer(), getReadCallback(), getSendTimeout(), good(), isDetachable(), folly::pushmi::__adl::noexcept(), readable(), readDataAvailable(), readEOF(), readErr(), setEorTracking(), setReadCB(), folly::AsyncTransportWrapper::setReadCB(), setSendTimeout(), shutdownWrite(), shutdownWriteNow(), uint32_t, write(), writeChain(), and writev().
GenericFilter< folly::AsyncTransportWrapper, folly::AsyncTransportWrapper::ReadCallback,&folly::AsyncTransportWrapper::setReadCB, true, folly::AsyncTransportWrapper::Destructor > TransportFilter