|
proxygen
|
#include <ZeroCopy.h>
Classes | |
| class | Callback |
Public Member Functions | |
| ZeroCopyTestAsyncSocket (size_t *counter, folly::EventBase *evb, int numLoops, size_t bufferSize, bool zeroCopy) | |
| ZeroCopyTestAsyncSocket (size_t *counter, folly::EventBase *evb, int fd, int numLoops, size_t bufferSize, bool zeroCopy) | |
| ~ZeroCopyTestAsyncSocket () | |
| void | connect (const folly::SocketAddress &remote) |
| bool | isZeroCopyWriteInProgress () const |
Private Member Functions | |
| void | setZeroCopy (bool enable) |
| void | setBufferSize (size_t bufferSize) |
| void | clearBuffers () |
| void | getReadBuffer (void **bufReturn, size_t *lenReturn) |
| void | readDataAvailable (size_t len) noexcept |
| void | onConnected () |
| void | onDataReady () |
| void | onDataFinish (folly::exception_wrapper) |
| bool | writeBuffer () |
Private Attributes | |
| size_t * | counter_ {nullptr} |
| folly::EventBase * | evb_ |
| int | numLoops_ {0} |
| int | currLoop_ {0} |
| bool | zeroCopy_ {false} |
| folly::AsyncSocket::UniquePtr | sock_ |
| Callback | callback_ |
| size_t | bufferSize_ {0} |
| size_t | readOffset_ {0} |
| char * | readBuffer_ {nullptr} |
| std::unique_ptr< folly::IOBuf > | writeBuffer_ |
| bool | client_ |
Definition at line 28 of file ZeroCopy.h.
|
inlineexplicit |
Definition at line 30 of file ZeroCopy.h.
References setBufferSize(), and setZeroCopy().
|
inlineexplicit |
Definition at line 46 of file ZeroCopy.h.
References callback_, setBufferSize(), setZeroCopy(), and sock_.
|
inline |
|
inlineprivate |
Definition at line 131 of file ZeroCopy.h.
References readBuffer_.
Referenced by setBufferSize(), and ~ZeroCopyTestAsyncSocket().
|
inline |
|
inlineprivate |
Definition at line 137 of file ZeroCopy.h.
References bufferSize_, readBuffer_, and readOffset_.
Referenced by folly::ZeroCopyTestAsyncSocket::Callback::getReadBuffer().
|
inline |
|
inlineprivate |
Definition at line 150 of file ZeroCopy.h.
References setZeroCopy(), writeBuffer(), and zeroCopy_.
Referenced by folly::ZeroCopyTestAsyncSocket::Callback::connectSuccess().
|
inlineprivate |
Definition at line 170 of file ZeroCopy.h.
References client_, counter_, evb_, and folly::EventBase::terminateLoopSoon().
Referenced by folly::ZeroCopyTestAsyncSocket::Callback::connectErr(), folly::ZeroCopyTestAsyncSocket::Callback::readEOF(), and folly::ZeroCopyTestAsyncSocket::Callback::readErr().
|
inlineprivate |
Definition at line 155 of file ZeroCopy.h.
References client_, counter_, currLoop_, evb_, numLoops_, folly::EventBase::runInLoop(), folly::EventBase::terminateLoopSoon(), and writeBuffer().
Referenced by readDataAvailable().
|
inlineprivatenoexcept |
Definition at line 142 of file ZeroCopy.h.
References bufferSize_, onDataReady(), and readOffset_.
Referenced by folly::ZeroCopyTestAsyncSocket::Callback::readDataAvailable().
|
inlineprivate |
Definition at line 89 of file ZeroCopy.h.
References bufferSize_, clearBuffers(), and readBuffer_.
Referenced by ZeroCopyTestAsyncSocket().
|
inlineprivate |
Definition at line 82 of file ZeroCopy.h.
References sock_, and zeroCopy_.
Referenced by onConnected(), and ZeroCopyTestAsyncSocket().
|
inlineprivate |
Definition at line 178 of file ZeroCopy.h.
References bufferSize_, folly::gen::move, folly::NONE, sock_, folly::IOBuf::takeOwnership(), folly::WRITE_MSG_ZEROCOPY, writeBuffer_, and zeroCopy_.
Referenced by onConnected(), and onDataReady().
|
private |
Definition at line 205 of file ZeroCopy.h.
Referenced by folly::ZeroCopyTestServer::connectionAccepted(), getReadBuffer(), readDataAvailable(), setBufferSize(), and writeBuffer().
|
private |
Definition at line 203 of file ZeroCopy.h.
Referenced by connect(), and ZeroCopyTestAsyncSocket().
|
private |
Definition at line 210 of file ZeroCopy.h.
Referenced by onDataFinish(), and onDataReady().
|
private |
Definition at line 196 of file ZeroCopy.h.
Referenced by onDataFinish(), and onDataReady().
|
private |
Definition at line 199 of file ZeroCopy.h.
Referenced by onDataReady().
|
private |
Definition at line 197 of file ZeroCopy.h.
Referenced by folly::ZeroCopyTestServer::addCallbackToServerSocket(), folly::ZeroCopyTestServer::connectionAccepted(), onDataFinish(), and onDataReady().
|
private |
Definition at line 198 of file ZeroCopy.h.
Referenced by folly::ZeroCopyTestServer::connectionAccepted(), and onDataReady().
|
private |
Definition at line 207 of file ZeroCopy.h.
Referenced by clearBuffers(), getReadBuffer(), and setBufferSize().
|
private |
Definition at line 206 of file ZeroCopy.h.
Referenced by getReadBuffer(), and readDataAvailable().
|
private |
Definition at line 202 of file ZeroCopy.h.
Referenced by connect(), folly::ZeroCopyTestAsyncSocket::Callback::connectSuccess(), isZeroCopyWriteInProgress(), setZeroCopy(), writeBuffer(), and ZeroCopyTestAsyncSocket().
|
private |
Definition at line 208 of file ZeroCopy.h.
Referenced by writeBuffer().
|
private |
Definition at line 200 of file ZeroCopy.h.
Referenced by folly::ZeroCopyTestServer::connectionAccepted(), onConnected(), setZeroCopy(), and writeBuffer().