proxygen
|
#include <AsyncSocketTest.h>
Public Member Functions | |
TestSendMsgParamsCallback (int flags, uint32_t dataSize, void *data) | |
void | reset (int flags) |
int | getFlagsImpl (folly::WriteFlags flags, int) noexceptoverride |
void | getAncillaryData (folly::WriteFlags flags, void *data) noexceptoverride |
uint32_t | getAncillaryDataSize (folly::WriteFlags flags) noexceptoverride |
![]() | |
virtual | ~SendMsgParamsCallback ()=default |
int | getFlags (folly::WriteFlags flags, bool zeroCopyEnabled) noexcept |
Public Attributes | |
int | flags_ |
folly::WriteFlags | writeFlags_ |
uint32_t | dataSize_ |
void * | data_ |
bool | queriedFlags_ |
bool | queriedData_ |
Additional Inherited Members | |
![]() | |
static const size_t | maxAncillaryDataSize {0x5000} |
Definition at line 209 of file AsyncSocketTest.h.
|
inline |
Definition at line 212 of file AsyncSocketTest.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.
Definition at line 239 of file AsyncSocketTest.h.
References data, data_, and folly::NONE.
|
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.
Definition at line 250 of file AsyncSocketTest.h.
References folly::NONE.
|
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.
Definition at line 227 of file AsyncSocketTest.h.
References folly::NONE.
|
inline |
Definition at line 220 of file AsyncSocketTest.h.
References folly::NONE.
Referenced by TEST().
void* TestSendMsgParamsCallback::data_ |
Definition at line 262 of file AsyncSocketTest.h.
uint32_t TestSendMsgParamsCallback::dataSize_ |
Definition at line 261 of file AsyncSocketTest.h.
int TestSendMsgParamsCallback::flags_ |
Definition at line 259 of file AsyncSocketTest.h.
bool TestSendMsgParamsCallback::queriedData_ |
Definition at line 264 of file AsyncSocketTest.h.
Referenced by TEST().
bool TestSendMsgParamsCallback::queriedFlags_ |
Definition at line 263 of file AsyncSocketTest.h.
Referenced by TEST().
folly::WriteFlags TestSendMsgParamsCallback::writeFlags_ |
Definition at line 260 of file AsyncSocketTest.h.