proxygen
folly::SSLAcceptErrorRunner Class Reference

#include <AsyncSSLSocketTest.h>

Inheritance diagram for folly::SSLAcceptErrorRunner:
folly::SSLAcceptEvbRunner folly::SSLAcceptRunner

Public Member Functions

 SSLAcceptErrorRunner (EventBase *evb)
 
 ~SSLAcceptErrorRunner () override=default
 
void run (Function< int()>, Function< void(int)> finallyFunc) const override
 
- Public Member Functions inherited from folly::SSLAcceptEvbRunner
 SSLAcceptEvbRunner (EventBase *evb)
 
 ~SSLAcceptEvbRunner () override=default
 
- Public Member Functions inherited from folly::SSLAcceptRunner
virtual ~SSLAcceptRunner ()=default
 

Additional Inherited Members

- Protected Attributes inherited from folly::SSLAcceptEvbRunner
EventBaseevb_
 

Detailed Description

Definition at line 1477 of file AsyncSSLSocketTest.h.

Constructor & Destructor Documentation

folly::SSLAcceptErrorRunner::SSLAcceptErrorRunner ( EventBase evb)
inlineexplicit

Definition at line 1479 of file AsyncSSLSocketTest.h.

1479 : SSLAcceptEvbRunner(evb) {}
folly::SSLAcceptErrorRunner::~SSLAcceptErrorRunner ( )
overridedefault

Member Function Documentation

void folly::SSLAcceptErrorRunner::run ( Function< int()>  acceptFunc,
Function< void(int)>  finallyFunc 
) const
inlineoverridevirtual

This is expected to run the first function and provide its return value to the second function. This can be used to run the SSL_accept in different contexts.

Reimplemented from folly::SSLAcceptEvbRunner.

Definition at line 1482 of file AsyncSSLSocketTest.h.

References evb_, and folly::gen::move.

1483  {
1484  evb_->runInLoop(
1485  [finallyFunc = std::move(finallyFunc)]() mutable { finallyFunc(-1); });
1486  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
void runInLoop(LoopCallback *callback, bool thisIteration=false)
Definition: EventBase.cpp:520

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