proxygen
wangle::PeekingAcceptorHandshakeManager Class Reference

#include <PeekingAcceptorHandshakeHelper.h>

Inheritance diagram for wangle::PeekingAcceptorHandshakeManager:
wangle::AcceptorHandshakeManager wangle::ManagedConnection wangle::AcceptorHandshakeHelper::Callback folly::HHWheelTimer::Callback folly::DelayedDestruction folly::DelayedDestructionBase

Public Member Functions

 PeekingAcceptorHandshakeManager (Acceptor *acceptor, const folly::SocketAddress &clientAddr, std::chrono::steady_clock::time_point acceptTime, TransportInfo tinfo, const std::vector< PeekingCallbackPtr > &peekCallbacks, size_t numBytes)
 
- Public Member Functions inherited from wangle::AcceptorHandshakeManager
 AcceptorHandshakeManager (Acceptor *acceptor, const folly::SocketAddress &clientAddr, std::chrono::steady_clock::time_point acceptTime, TransportInfo tinfo)
 
 ~AcceptorHandshakeManager () override=default
 
virtual void start (folly::AsyncSSLSocket::UniquePtr sock) noexcept
 
void timeoutExpired () noexceptoverride
 
void describe (std::ostream &os) const override
 
bool isBusy () const override
 
void notifyPendingShutdown () override
 
void closeWhenIdle () override
 
void dropConnection () override
 
void dropConnection (SSLErrorEnum reason)
 
void dumpConnectionState (uint8_t) override
 
- Public Member Functions inherited from wangle::ManagedConnection
 ManagedConnection ()
 
virtual std::chrono::milliseconds getIdleTime () const
 
void fireNotifyPendingShutdown ()
 
void fireCloseWhenIdle (bool force_to_close=false)
 
virtual void resetTimeout ()
 
void resetTimeoutTo (std::chrono::milliseconds)
 
virtual void scheduleTimeout (folly::HHWheelTimer::Callback *callback, std::chrono::milliseconds timeout)
 
ConnectionManagergetConnectionManager ()
 
- Public Member Functions inherited from folly::HHWheelTimer::Callback
 Callback ()=default
 
virtual ~Callback ()
 
virtual void callbackCanceled () noexcept
 
void cancelTimeout ()
 
bool isScheduled () const
 
std::chrono::milliseconds getTimeRemaining ()
 
- Public Member Functions inherited from folly::DelayedDestruction
virtual void destroy ()
 
bool getDestroyPending () const
 
- Public Member Functions inherited from folly::DelayedDestructionBase
virtual ~DelayedDestructionBase ()=default
 
- Public Member Functions inherited from wangle::AcceptorHandshakeHelper::Callback
virtual ~Callback ()=default
 

Protected Member Functions

void startHelper (folly::AsyncSSLSocket::UniquePtr sock) override
 
- Protected Member Functions inherited from wangle::AcceptorHandshakeManager
void connectionReady (folly::AsyncTransportWrapper::UniquePtr transport, std::string nextProtocol, SecureTransportType secureTransportType, folly::Optional< SSLErrorEnum > details) noexceptoverride
 
void connectionError (folly::AsyncTransportWrapper *transport, folly::exception_wrapper ex, folly::Optional< SSLErrorEnum > details) noexceptoverride
 
std::chrono::milliseconds timeSinceAcceptMs () const
 
void startHandshakeTimeout ()
 
- Protected Member Functions inherited from wangle::ManagedConnection
 ~ManagedConnection () override
 
- Protected Member Functions inherited from folly::HHWheelTimer::Callback
virtual std::chrono::steady_clock::time_point getCurTime ()
 
- Protected Member Functions inherited from folly::DelayedDestruction
 ~DelayedDestruction () override=default
 
 DelayedDestruction ()
 
- Protected Member Functions inherited from folly::DelayedDestructionBase
 DelayedDestructionBase ()
 
uint32_t getDestructorGuardCount () const
 

Protected Attributes

const std::vector< PeekingCallbackPtr > & peekCallbacks_
 
size_t numBytes_
 
- Protected Attributes inherited from wangle::AcceptorHandshakeManager
Acceptoracceptor_
 
folly::SocketAddress clientAddr_
 
std::chrono::steady_clock::time_point acceptTime_
 
TransportInfo tinfo_
 
AcceptorHandshakeHelper::UniquePtr helper_
 

Detailed Description

Definition at line 140 of file PeekingAcceptorHandshakeHelper.h.

Constructor & Destructor Documentation

wangle::PeekingAcceptorHandshakeManager::PeekingAcceptorHandshakeManager ( Acceptor acceptor,
const folly::SocketAddress clientAddr,
std::chrono::steady_clock::time_point  acceptTime,
TransportInfo  tinfo,
const std::vector< PeekingCallbackPtr > &  peekCallbacks,
size_t  numBytes 
)
inline

Definition at line 142 of file PeekingAcceptorHandshakeHelper.h.

148  :
150  acceptor,
151  clientAddr,
152  acceptTime,
153  std::move(tinfo)),
154  peekCallbacks_(peekCallbacks),
155  numBytes_(numBytes) {}
AcceptorHandshakeManager(Acceptor *acceptor, const folly::SocketAddress &clientAddr, std::chrono::steady_clock::time_point acceptTime, TransportInfo tinfo)
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
const std::vector< PeekingCallbackPtr > & peekCallbacks_

Member Function Documentation

void wangle::PeekingAcceptorHandshakeManager::startHelper ( folly::AsyncSSLSocket::UniquePtr  sock)
inlineoverrideprotectedvirtual

Implements wangle::AcceptorHandshakeManager.

Definition at line 158 of file PeekingAcceptorHandshakeHelper.h.

References wangle::PeekingAcceptorHandshakeHelper::acceptTime_, wangle::PeekingAcceptorHandshakeHelper::clientAddr_, wangle::PeekingAcceptorHandshakeHelper::helper_, folly::gen::move, wangle::PeekingAcceptorHandshakeHelper::numBytes_, wangle::PeekingAcceptorHandshakeHelper::peekCallbacks_, wangle::PeekingAcceptorHandshakeHelper::PeekingAcceptorHandshakeHelper(), and wangle::PeekingAcceptorHandshakeHelper::tinfo_.

158  {
159  helper_.reset(new PeekingAcceptorHandshakeHelper(
160  clientAddr_,
161  acceptTime_,
162  tinfo_,
164  numBytes_));
165  helper_->start(std::move(sock), this);
166  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
const std::vector< PeekingCallbackPtr > & peekCallbacks_
std::chrono::steady_clock::time_point acceptTime_
AcceptorHandshakeHelper::UniquePtr helper_

Member Data Documentation

size_t wangle::PeekingAcceptorHandshakeManager::numBytes_
protected

Definition at line 169 of file PeekingAcceptorHandshakeHelper.h.

const std::vector<PeekingCallbackPtr>& wangle::PeekingAcceptorHandshakeManager::peekCallbacks_
protected

Definition at line 168 of file PeekingAcceptorHandshakeHelper.h.


The documentation for this class was generated from the following file: