proxygen
|
#include <AsyncSSLSocketTest.h>
Public Member Functions | |
SendMsgParamsCallbackBase () | |
void | setSocket (const std::shared_ptr< AsyncSSLSocket > &socket) |
int | getFlagsImpl (folly::WriteFlags flags, int) noexceptoverride |
void | getAncillaryData (folly::WriteFlags flags, void *data) noexceptoverride |
uint32_t | getAncillaryDataSize (folly::WriteFlags flags) noexceptoverride |
Public Member Functions inherited from folly::AsyncSocket::SendMsgParamsCallback | |
virtual | ~SendMsgParamsCallback ()=default |
int | getFlags (folly::WriteFlags flags, bool zeroCopyEnabled) noexcept |
Public Attributes | |
std::shared_ptr< AsyncSSLSocket > | socket_ |
folly::AsyncSocket::SendMsgParamsCallback * | oldCallback_ {nullptr} |
Additional Inherited Members | |
Static Public Attributes inherited from folly::AsyncSocket::SendMsgParamsCallback | |
static const size_t | maxAncillaryDataSize {0x5000} |
Definition at line 50 of file AsyncSSLSocketTest.h.
|
inline |
Definition at line 53 of file AsyncSSLSocketTest.h.
|
inlineoverridevirtualnoexcept |
getAncillaryData() will be invoked to initialize ancillary data buffer referred by "msg_control" field of msghdr structure passed to sendmsg() system call. The function assumes that the size of buffer is not smaller than the value returned by getAncillaryDataSize() method for the same combination of flags.
flags | Write flags requested for the given write operation |
data | Pointer to ancillary data buffer to initialize. |
Reimplemented from folly::AsyncSocket::SendMsgParamsCallback.
Reimplemented in folly::SendMsgDataCallback.
Definition at line 67 of file AsyncSSLSocketTest.h.
References folly::data(), folly::AsyncSocket::SendMsgParamsCallback::getAncillaryData(), and oldCallback_.
|
inlineoverridevirtualnoexcept |
getAncillaryDataSize() will be invoked to retrieve the size of ancillary data buffer which should be passed to sendmsg() system call
flags | Write flags requested for the given write operation |
Reimplemented from folly::AsyncSocket::SendMsgParamsCallback.
Reimplemented in folly::SendMsgDataCallback.
Definition at line 71 of file AsyncSSLSocketTest.h.
References folly::AsyncSocket::SendMsgParamsCallback::getAncillaryDataSize(), and oldCallback_.
|
inlineoverridevirtualnoexcept |
getFlagsImpl() will be invoked by getFlags(folly::WriteFlags flags) method to retrieve the flags to be passed to sendmsg() system call. SendMsgParamsCallback::getFlags() is calling this method, and returns its results directly to the caller in AsyncSocket. Classes inheriting from SendMsgParamsCallback are welcome to override this method to force SendMsgParamsCallback to return its own set of flags.
flags | Write flags requested for the given write operation |
defaultflags | A set of message flags returned by getDefaultFlags() method for the given "flags" mask. |
Reimplemented from folly::AsyncSocket::SendMsgParamsCallback.
Reimplemented in folly::SendMsgFlagsCallback.
Definition at line 61 of file AsyncSSLSocketTest.h.
References folly::AsyncSocket::SendMsgParamsCallback::getFlags(), and oldCallback_.
|
inline |
Definition at line 55 of file AsyncSSLSocketTest.h.
References oldCallback_, folly::netops::socket(), and socket_.
Referenced by folly::ExpectWriteErrorCallback::~ExpectWriteErrorCallback().
folly::AsyncSocket::SendMsgParamsCallback* folly::SendMsgParamsCallbackBase::oldCallback_ {nullptr} |
Definition at line 76 of file AsyncSSLSocketTest.h.
Referenced by getAncillaryData(), folly::SendMsgDataCallback::getAncillaryData(), getAncillaryDataSize(), folly::SendMsgDataCallback::getAncillaryDataSize(), getFlagsImpl(), folly::SendMsgFlagsCallback::getFlagsImpl(), and setSocket().
std::shared_ptr<AsyncSSLSocket> folly::SendMsgParamsCallbackBase::socket_ |
Definition at line 75 of file AsyncSSLSocketTest.h.
Referenced by folly::AlpnClient::AlpnClient(), folly::AlpnServer::AlpnServer(), folly::BlockingWriteClient::BlockingWriteClient(), folly::BlockingWriteServer::BlockingWriteServer(), folly::HandshakeCallback::closeSocket(), folly::HandshakeCallback::getSocket(), folly::HandshakeCallback::handshakeSuc(), folly::BlockingWriteClient::handshakeSuc(), folly::BlockingWriteServer::handshakeSuc(), folly::AlpnClient::handshakeSuc(), folly::AlpnServer::handshakeSuc(), folly::RenegotiatingServer::handshakeSuc(), folly::SNIClient::handshakeSuc(), folly::SSLHandshakeBase::moveSocket(), folly::ReadCallback::readDataAvailable(), folly::WriteErrorCallback::readDataAvailable(), folly::BlockingWriteServer::readDataAvailable(), folly::ReadCallbackBase::readEOF(), folly::BlockingWriteServer::readEOF(), folly::AlpnServer::readEOF(), folly::SNIServer::readEOF(), folly::ReadCallbackBase::readErr(), folly::RenegotiatingServer::RenegotiatingServer(), folly::SSLAcceptCloseRunner::run(), setSocket(), folly::WriteCallbackBase::setSocket(), folly::ReadCallbackBase::setSocket(), folly::HandshakeCallback::setSocket(), folly::SNIClient::SNIClient(), folly::SNIServer::SNIServer(), folly::SSLHandshakeClient::SSLHandshakeClient(), folly::SSLHandshakeClientDoVerify::SSLHandshakeClientDoVerify(), folly::SSLHandshakeClientNoVerify::SSLHandshakeClientNoVerify(), folly::SSLHandshakeServer::SSLHandshakeServer(), folly::SSLHandshakeServerDoVerify::SSLHandshakeServerDoVerify(), folly::SSLHandshakeServerNoVerify::SSLHandshakeServerNoVerify(), folly::SSLHandshakeServerParseClientHello::SSLHandshakeServerParseClientHello(), folly::WriteCallbackBase::writeErr(), folly::BlockingWriteClient::writeSuccess(), folly::AlpnClient::writeSuccess(), folly::SNIClient::writeSuccess(), folly::ExpectWriteErrorCallback::~ExpectWriteErrorCallback(), and folly::RenegotiatingServer::~RenegotiatingServer().