proxygen
|
#include <AsyncSSLSocketTest.h>
Public Member Functions | |
WriteCallbackBase (SendMsgParamsCallbackBase *mcb=nullptr) | |
~WriteCallbackBase () override | |
virtual void | setSocket (const std::shared_ptr< AsyncSSLSocket > &socket) |
void | writeSuccess () noexceptoverride |
void | writeErr (size_t nBytesWritten, const AsyncSocketException &ex) noexceptoverride |
Public Member Functions inherited from folly::AsyncWriter::WriteCallback | |
virtual | ~WriteCallback ()=default |
Public Attributes | |
std::shared_ptr< AsyncSSLSocket > | socket_ |
StateEnum | state |
size_t | bytesWritten |
AsyncSocketException | exception |
SendMsgParamsCallbackBase * | mcb_ |
Definition at line 129 of file AsyncSSLSocketTest.h.
|
inlineexplicit |
Definition at line 131 of file AsyncSSLSocketTest.h.
|
inlineoverride |
Definition at line 137 of file AsyncSSLSocketTest.h.
References EXPECT_EQ, and folly::STATE_SUCCEEDED.
|
inlinevirtual |
Definition at line 141 of file AsyncSSLSocketTest.h.
References folly::netops::socket(), and folly::SendMsgParamsCallbackBase::socket_.
Referenced by folly::ExpectWriteErrorCallback::~ExpectWriteErrorCallback().
|
inlineoverridevirtualnoexcept |
writeError() will be invoked if an error occurs writing the data.
bytesWritten | The number of bytes that were successfull |
ex | An exception describing the error that occurred. |
Implements folly::AsyncWriter::WriteCallback.
Definition at line 153 of file AsyncSSLSocketTest.h.
References folly::SendMsgParamsCallbackBase::socket_, and folly::STATE_FAILED.
|
inlineoverridevirtualnoexcept |
writeSuccess() will be invoked when all of the data has been successfully written.
Note that this mainly signals that the buffer containing the data to write is no longer needed and may be freed or re-used. It does not guarantee that the data has been fully transmitted to the remote endpoint. For example, on socket-based transports, writeSuccess() only indicates that the data has been given to the kernel for eventual transmission.
Implements folly::AsyncWriter::WriteCallback.
Definition at line 148 of file AsyncSSLSocketTest.h.
References folly::STATE_SUCCEEDED.
size_t folly::WriteCallbackBase::bytesWritten |
Definition at line 167 of file AsyncSSLSocketTest.h.
AsyncSocketException folly::WriteCallbackBase::exception |
Definition at line 168 of file AsyncSSLSocketTest.h.
SendMsgParamsCallbackBase* folly::WriteCallbackBase::mcb_ |
Definition at line 169 of file AsyncSSLSocketTest.h.
std::shared_ptr<AsyncSSLSocket> folly::WriteCallbackBase::socket_ |
Definition at line 165 of file AsyncSSLSocketTest.h.
StateEnum folly::WriteCallbackBase::state |
Definition at line 166 of file AsyncSSLSocketTest.h.