25 folly::AsyncTransportWrapper>,
30 std::unique_ptr<AsyncFizzBase, folly::DelayedDestruction::Destructor>;
59 std::unique_ptr<folly::IOBuf>&& buf,
72 bool good()
const override = 0;
75 bool error()
const override = 0;
185 bool closeTransport =
true);
193 std::unique_ptr<folly::IOBuf>&& buf,
212 void getReadBuffer(
void** bufReturn,
size_t* lenReturn)
override;
216 std::unique_ptr<folly::IOBuf>
data) noexcept
override;
217 void readEOF() noexcept
override;
virtual std::vector< SignatureScheme > getSupportedSigSchemes() const =0
HandshakeTimeout(AsyncFizzBase &transport, folly::EventBase *eventBase)
virtual void deliverError(const folly::AsyncSocketException &ex, bool closeTransport=true)
folly::IOBufQueue transportReadBuf_
std::unique_ptr< folly::IOBuf > appDataBuf_
ReadCallback * getReadCallback() const override
std::unique_ptr< X509, X509Deleter > X509UniquePtr
void attachTimeoutManager(folly::TimeoutManager *manager)
AsyncFizzBase(folly::AsyncTransportWrapper::UniquePtr transport)
void readErr(const folly::AsyncSocketException &ex) noexceptoverride
folly::AsyncTransportCertificate Cert
void setReplaySafetyCallback(folly::AsyncTransport::ReplaySafetyCallback *callback) override=0
virtual void startHandshakeTimeout(std::chrono::milliseconds)
const Cert * getPeerCertificate() const override=0
—— Concurrent Priority Queue Implementation ——
~HandshakeTimeout() override=default
requires E e noexcept(noexcept(s.error(std::move(e))))
void detachTimeoutManager()
bool good() const override=0
void readEOF() noexceptoverride
void detachEventBase() override
void setReadCB(ReadCallback *callback) override
void attachEventBase(folly::EventBase *eventBase) override
virtual void cancelHandshakeTimeout()
void writeErr(size_t bytesWritten, const folly::AsyncSocketException &ex) noexceptoverride
~AsyncFizzBase() override
std::unique_ptr< AsyncTransportWrapper, Destructor > UniquePtr
static Options cacheChainLength()
void writeSuccess() noexceptoverride
const X509 * getSelfCert() const override=0
void attachTimeoutManager(TimeoutManager *timeoutManager, InternalEnum internal=InternalEnum::NORMAL)
void readDataAvailable(size_t len) noexceptoverride
void handshakeTimeoutExpired() noexcept
virtual Buf getEkm(folly::StringPiece label, const Buf &context, uint16_t length) const =0
const Cert * getSelfCertificate() const override=0
HandshakeTimeout handshakeTimeout_
void writeChain(folly::AsyncTransportWrapper::WriteCallback *callback, std::unique_ptr< folly::IOBuf > &&buf, folly::WriteFlags flags=folly::WriteFlags::NONE) override
void timeoutExpired() noexceptoverride
size_t getAppBytesWritten() const override
virtual void startTransportReads()
bool error() const override=0
void attachEventBase(EventBase *eventBase, InternalEnum internal=InternalEnum::NORMAL)
bool isBufferMovable() noexceptoverride
AsyncFizzBase & transport_
AsyncReader::ReadCallback ReadCallback
std::unique_ptr< AsyncFizzBase, folly::DelayedDestruction::Destructor > UniquePtr
void getReadBuffer(void **bufReturn, size_t *lenReturn) override
std::unique_ptr< folly::IOBuf > Buf
std::string getSecurityProtocol() const override
bool isReplaySafe() const override=0
void readBufferAvailable(std::unique_ptr< folly::IOBuf > data) noexceptoverride
bool connecting() const override=0
folly::ssl::X509UniquePtr getPeerCert() const override=0
void detachTimeoutManager()
std::string getApplicationProtocol() const noexceptoverride=0
size_t getAppBytesReceived() const override
Range< const char * > StringPiece
virtual void transportError(const folly::AsyncSocketException &ex)=0
virtual folly::Optional< CipherSuite > getCipher() const =0
bool isDetachable() const override
virtual void transportDataAvailable()=0
static constexpr uint64_t data[1]
virtual void writeAppData(folly::AsyncTransportWrapper::WriteCallback *callback, std::unique_ptr< folly::IOBuf > &&buf, folly::WriteFlags flags=folly::WriteFlags::NONE)=0
bool readable() const override=0
ReadCallback * readCallback_
virtual void deliverAppData(std::unique_ptr< folly::IOBuf > buf)