proxygen
|
#include <AsyncSSLSocketTest.h>
Public Member Functions | |
AlpnClient (AsyncSSLSocket::UniquePtr socket) | |
Public Attributes | |
const unsigned char * | nextProto |
unsigned | nextProtoLength |
folly::Optional< AsyncSocketException > | except |
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_ |
Definition at line 917 of file AsyncSSLSocketTest.h.
|
inlineexplicit |
Definition at line 920 of file AsyncSSLSocketTest.h.
References folly::SendMsgParamsCallbackBase::socket_.
|
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 933 of file AsyncSSLSocketTest.h.
|
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 930 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 941 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 938 of file AsyncSSLSocketTest.h.
References folly::SendMsgParamsCallbackBase::socket_.
folly::Optional<AsyncSocketException> folly::AlpnClient::except |
Definition at line 927 of file AsyncSSLSocketTest.h.
const unsigned char* folly::AlpnClient::nextProto |
Definition at line 925 of file AsyncSSLSocketTest.h.
unsigned folly::AlpnClient::nextProtoLength |
Definition at line 926 of file AsyncSSLSocketTest.h.
|
private |
Definition at line 948 of file AsyncSSLSocketTest.h.