proxygen
|
#include <AsyncSSLSocketTest.h>
Public Member Functions | |
BlockingWriteClient (AsyncSSLSocket::UniquePtr socket) | |
struct iovec * | getIovec () const |
uint32_t | getIovecCount () const |
Private Member Functions | |
void | handshakeSuc (AsyncSSLSocket *) noexceptoverride |
void | handshakeErr (AsyncSSLSocket *, const AsyncSocketException &ex) noexceptoverride |
void | writeSuccess () noexceptoverride |
void | writeErr (size_t bytesWritten, const AsyncSocketException &ex) noexceptoverride |
Private Member Functions inherited from folly::AsyncSSLSocket::HandshakeCB | |
virtual | ~HandshakeCB ()=default |
virtual bool | handshakeVer (AsyncSSLSocket *, bool preverifyOk, X509_STORE_CTX *) noexcept |
Private Member Functions inherited from folly::AsyncWriter::WriteCallback | |
virtual | ~WriteCallback ()=default |
Private Attributes | |
AsyncSSLSocket::UniquePtr | socket_ |
uint32_t | bufLen_ |
uint32_t | iovCount_ |
std::unique_ptr< uint8_t[]> | buf_ |
std::unique_ptr< struct iovec[]> | iov_ |
Definition at line 790 of file AsyncSSLSocketTest.h.
|
inlineexplicit |
Definition at line 793 of file AsyncSSLSocketTest.h.
References folly::SendMsgParamsCallbackBase::socket_, and uint32_t.
|
inline |
Definition at line 815 of file AsyncSSLSocketTest.h.
|
inline |
Definition at line 818 of file AsyncSSLSocketTest.h.
|
inlineoverrideprivatevirtualnoexcept |
handshakeErr() is called if an error occurs while establishing the SSL connection.
The HandshakeCB will be uninstalled before handshakeErr() is called.
sock | SSL socket on which the handshake was initiated |
ex | An exception representing the error. |
Implements folly::AsyncSSLSocket::HandshakeCB.
Definition at line 826 of file AsyncSSLSocketTest.h.
References ADD_FAILURE.
|
inlineoverrideprivatevirtualnoexcept |
handshakeSuc() is called when a new SSL connection is established, i.e., after SSL_accept/connect() returns successfully.
The HandshakeCB will be uninstalled before handshakeSuc() is called.
sock | SSL socket on which the handshake was initiated |
Implements folly::AsyncSSLSocket::HandshakeCB.
Definition at line 823 of file AsyncSSLSocketTest.h.
References folly::SendMsgParamsCallbackBase::socket_.
|
inlineoverrideprivatevirtualnoexcept |
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 834 of file AsyncSSLSocketTest.h.
References ADD_FAILURE.
|
inlineoverrideprivatevirtualnoexcept |
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 831 of file AsyncSSLSocketTest.h.
References folly::SendMsgParamsCallbackBase::socket_.
|
private |
Definition at line 844 of file AsyncSSLSocketTest.h.
|
private |
Definition at line 842 of file AsyncSSLSocketTest.h.
|
private |
Definition at line 845 of file AsyncSSLSocketTest.h.
|
private |
Definition at line 843 of file AsyncSSLSocketTest.h.
|
private |
Definition at line 841 of file AsyncSSLSocketTest.h.