46 const std::vector<uint8_t>& peekedBytes,
48 std::chrono::steady_clock::time_point acceptTime,
57 std::chrono::steady_clock::time_point acceptTime,
59 const std::vector<PeekCallback*>& peekCallbacks,
75 folly::AsyncSSLSocket::SSLStateEnum::STATE_UNENCRYPTED);
85 helper_->dropConnection(reason);
94 helper_ = peekCallback->getHelper(
104 folly::AsyncSocketException::AsyncSocketExceptionType::CORRUPTED_DATA;
145 std::chrono::steady_clock::time_point acceptTime,
147 const std::vector<PeekingCallbackPtr>& peekCallbacks,
void peekError(const folly::AsyncSocketException &ex) noexceptoverride
folly::AsyncSSLSocket::UniquePtr socket_
SocketPeeker::UniquePtr peeker_
AcceptorHandshakeHelper::Callback * callback_
const size_t bytesRequired_
void startHelper(folly::AsyncSSLSocket::UniquePtr sock) override
void start(folly::AsyncSSLSocket::UniquePtr sock, AcceptorHandshakeHelper::Callback *callback) noexceptoverride
constexpr detail::Map< Move > move
const std::vector< PeekingCallbackPtr > & peekCallbacks_
requires E e noexcept(noexcept(s.error(std::move(e))))
virtual ~PeekCallback()=default
const folly::SocketAddress & clientAddr_
AcceptorHandshakeHelper::UniquePtr helper_
std::unique_ptr< AsyncSSLSocket, Destructor > UniquePtr
void dropConnection(SSLErrorEnum reason=SSLErrorEnum::NO_ERROR) override
~PeekingAcceptorHandshakeHelper() override=default
void peekSuccess(std::vector< uint8_t > peekBytes) noexceptoverride
size_t getBytesRequired() const
std::chrono::steady_clock::time_point acceptTime_
virtual void connectionError(folly::AsyncTransportWrapper *transport, folly::exception_wrapper ex, folly::Optional< SSLErrorEnum > sslErr) noexcept=0
PeekCallback(size_t bytesRequired)
const std::vector< PeekCallback * > & peekCallbacks_
PeekingAcceptorHandshakeManager(Acceptor *acceptor, const folly::SocketAddress &clientAddr, std::chrono::steady_clock::time_point acceptTime, TransportInfo tinfo, const std::vector< PeekingCallbackPtr > &peekCallbacks, size_t numBytes)
std::unique_ptr< AcceptorHandshakeHelper, folly::DelayedDestruction::Destructor > UniquePtr
PeekingAcceptorHandshakeHelper(const folly::SocketAddress &clientAddr, std::chrono::steady_clock::time_point acceptTime, TransportInfo &tinfo, const std::vector< PeekCallback * > &peekCallbacks, size_t numBytes)
std::unique_ptr< SocketPeeker, folly::DelayedDestruction::Destructor > UniquePtr
virtual AcceptorHandshakeHelper::UniquePtr getHelper(const std::vector< uint8_t > &peekedBytes, const folly::SocketAddress &clientAddr, std::chrono::steady_clock::time_point acceptTime, TransportInfo &tinfo)=0