|
proxygen
|
#include <AsyncSSLSocketTest.h>
Public Member Functions | |
| ReadCallbackBase (WriteCallbackBase *wcb) | |
| ~ReadCallbackBase () override | |
| void | setSocket (const std::shared_ptr< AsyncSSLSocket > &socket) |
| void | setState (StateEnum s) |
| void | readErr (const AsyncSocketException &ex) noexceptoverride |
| void | readEOF () noexceptoverride |
Public Member Functions inherited from folly::AsyncReader::ReadCallback | |
| virtual | ~ReadCallback ()=default |
| virtual void | getReadBuffer (void **bufReturn, size_t *lenReturn)=0 |
| virtual void | readDataAvailable (size_t len) noexcept=0 |
| virtual bool | isBufferMovable () noexcept |
| virtual size_t | maxBufferSize () const |
| virtual void | readBufferAvailable (std::unique_ptr< IOBuf >) noexcept |
Public Attributes | |
| std::shared_ptr< AsyncSSLSocket > | socket_ |
| WriteCallbackBase * | wcb_ |
| StateEnum | state |
Definition at line 277 of file AsyncSSLSocketTest.h.
|
inlineexplicit |
Definition at line 279 of file AsyncSSLSocketTest.h.
|
inlineoverride |
Definition at line 282 of file AsyncSSLSocketTest.h.
References EXPECT_EQ, and folly::STATE_SUCCEEDED.
|
inlineoverridevirtualnoexcept |
readEOF() will be invoked when the transport is closed.
The read callback will be automatically uninstalled immediately before readEOF() is invoked.
Implements folly::AsyncReader::ReadCallback.
Reimplemented in folly::EmptyReadCallback, and folly::ReadEOFCallback.
Definition at line 303 of file AsyncSSLSocketTest.h.
References folly::SendMsgParamsCallbackBase::socket_.
Referenced by folly::ReadEOFCallback::readEOF().
|
inlineoverridevirtualnoexcept |
readError() will be invoked if an error occurs reading from the transport.
The read callback will be automatically uninstalled immediately before readError() is invoked.
| ex | An exception describing the error that occurred. |
Implements folly::AsyncReader::ReadCallback.
Reimplemented in folly::EmptyReadCallback, folly::WriteErrorCallback, and folly::ReadErrorCallback.
Definition at line 297 of file AsyncSSLSocketTest.h.
References folly::SendMsgParamsCallbackBase::socket_, and folly::STATE_FAILED.
Referenced by folly::ReadErrorCallback::readErr().
|
inline |
Definition at line 286 of file AsyncSSLSocketTest.h.
References folly::netops::socket(), and folly::SendMsgParamsCallbackBase::socket_.
Referenced by folly::TEST().
|
inline |
| std::shared_ptr<AsyncSSLSocket> folly::ReadCallbackBase::socket_ |
Definition at line 309 of file AsyncSSLSocketTest.h.
| StateEnum folly::ReadCallbackBase::state |
Definition at line 311 of file AsyncSSLSocketTest.h.
Referenced by TEST(), folly::TEST(), and TEST_P().
| WriteCallbackBase* folly::ReadCallbackBase::wcb_ |
Definition at line 310 of file AsyncSSLSocketTest.h.