proxygen
|
#include <AsyncSSLSocketTest.h>
Public Member Functions | |
WriteErrorCallback (WriteCallbackBase *wcb) | |
void | readDataAvailable (size_t len) noexceptoverride |
void | readErr (const AsyncSocketException &ex) noexceptoverride |
Public Member Functions inherited from folly::ReadCallback | |
ReadCallback (WriteCallbackBase *wcb) | |
~ReadCallback () override | |
void | getReadBuffer (void **bufReturn, size_t *lenReturn) override |
Public Member Functions inherited from folly::ReadCallbackBase | |
ReadCallbackBase (WriteCallbackBase *wcb) | |
~ReadCallbackBase () override | |
void | setSocket (const std::shared_ptr< AsyncSSLSocket > &socket) |
void | setState (StateEnum s) |
void | readEOF () noexceptoverride |
Public Member Functions inherited from folly::AsyncReader::ReadCallback | |
virtual bool | isBufferMovable () noexcept |
virtual size_t | maxBufferSize () const |
virtual void | readBufferAvailable (std::unique_ptr< IOBuf >) noexcept |
Additional Inherited Members | |
Public Attributes inherited from folly::ReadCallback | |
std::vector< Buffer > | buffers |
Buffer | currentBuffer |
Public Attributes inherited from folly::ReadCallbackBase | |
std::shared_ptr< AsyncSSLSocket > | socket_ |
WriteCallbackBase * | wcb_ |
StateEnum | state |
Definition at line 421 of file AsyncSSLSocketTest.h.
|
inlineexplicit |
Definition at line 423 of file AsyncSSLSocketTest.h.
|
inlineoverridevirtualnoexcept |
readDataAvailable() will be invoked when data has been successfully read into the buffer returned by the last call to getReadBuffer().
The read callback remains installed after readDataAvailable() returns. It must be explicitly uninstalled to stop receiving read events. getReadBuffer() will be called at least once before each call to readDataAvailable(). getReadBuffer() will also be called before any call to readEOF().
len | The number of bytes placed in the buffer. |
Reimplemented from folly::ReadCallback.
Definition at line 425 of file AsyncSSLSocketTest.h.
References folly::netops::close(), folly::test::msvcSuppressAbortOnInvalidParams(), folly::SendMsgParamsCallbackBase::socket_, folly::STATE_FAILED, and folly::STATE_SUCCEEDED.
|
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. |
Reimplemented from folly::ReadCallbackBase.
Definition at line 449 of file AsyncSSLSocketTest.h.