proxygen
folly::AsyncSSLSocket::Timeout Class Reference

#include <AsyncSSLSocket.h>

Inheritance diagram for folly::AsyncSSLSocket::Timeout:
folly::AsyncTimeout

Public Member Functions

 Timeout (AsyncSSLSocket *sslSocket, EventBase *eventBase)
 
bool scheduleTimeout (TimeoutManager::timeout_type timeout)
 
bool scheduleTimeout (uint32_t timeoutMs)
 
TimeoutManager::timeout_type getTimeout ()
 
void timeoutExpired () noexceptoverride
 
- Public Member Functions inherited from folly::AsyncTimeout
 AsyncTimeout (TimeoutManager *timeoutManager)
 
 AsyncTimeout (EventBase *eventBase)
 
 AsyncTimeout (TimeoutManager *timeoutManager, InternalEnum internal)
 
 AsyncTimeout (EventBase *eventBase, InternalEnum internal)
 
 AsyncTimeout ()
 
virtual ~AsyncTimeout ()
 
bool scheduleTimeout (uint32_t milliseconds)
 
bool scheduleTimeout (TimeoutManager::timeout_type timeout)
 
void cancelTimeout ()
 
bool isScheduled () const
 
void attachTimeoutManager (TimeoutManager *timeoutManager, InternalEnum internal=InternalEnum::NORMAL)
 
void attachEventBase (EventBase *eventBase, InternalEnum internal=InternalEnum::NORMAL)
 
void detachTimeoutManager ()
 
void detachEventBase ()
 
const TimeoutManagergetTimeoutManager ()
 
struct event * getEvent ()
 

Private Attributes

AsyncSSLSocketsslSocket_
 
TimeoutManager::timeout_type timeout_
 

Additional Inherited Members

- Public Types inherited from folly::AsyncTimeout
typedef TimeoutManager::InternalEnum InternalEnum
 
- Static Public Member Functions inherited from folly::AsyncTimeout
template<typename TCallback >
static std::unique_ptr< AsyncTimeoutmake (TimeoutManager &manager, TCallback &&callback)
 
template<typename TCallback >
static std::unique_ptr< AsyncTimeoutschedule (TimeoutManager::timeout_type timeout, TimeoutManager &manager, TCallback &&callback)
 

Detailed Description

Definition at line 126 of file AsyncSSLSocket.h.

Constructor & Destructor Documentation

folly::AsyncSSLSocket::Timeout::Timeout ( AsyncSSLSocket sslSocket,
EventBase eventBase 
)
inline

Definition at line 128 of file AsyncSSLSocket.h.

129  : AsyncTimeout(eventBase), sslSocket_(sslSocket) {}

Member Function Documentation

TimeoutManager::timeout_type folly::AsyncSSLSocket::Timeout::getTimeout ( )
inline

Definition at line 140 of file AsyncSSLSocket.h.

140  {
141  return timeout_;
142  }
TimeoutManager::timeout_type timeout_
bool folly::AsyncSSLSocket::Timeout::scheduleTimeout ( uint32_t  timeoutMs)
inline

Definition at line 136 of file AsyncSSLSocket.h.

136  {
137  return scheduleTimeout(std::chrono::milliseconds{timeoutMs});
138  }
bool scheduleTimeout(TimeoutManager::timeout_type timeout)
void folly::AsyncSSLSocket::Timeout::timeoutExpired ( )
inlineoverridevirtualnoexcept

timeoutExpired() is invoked when the timeout period has expired.

Implements folly::AsyncTimeout.

Definition at line 144 of file AsyncSSLSocket.h.

References sslSocket_.

144  {
146  }
void timeoutExpired(std::chrono::milliseconds timeout) noexcept
TimeoutManager::timeout_type timeout_

Member Data Documentation

AsyncSSLSocket* folly::AsyncSSLSocket::Timeout::sslSocket_
private

Definition at line 149 of file AsyncSSLSocket.h.

TimeoutManager::timeout_type folly::AsyncSSLSocket::Timeout::timeout_
private

Definition at line 150 of file AsyncSSLSocket.h.


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