proxygen
|
#include <ZeroCopy.h>
Public Member Functions | |
ZeroCopyTest (size_t numClients, int numLoops, bool zeroCopy, size_t bufferSize) | |
bool | run () |
Private Member Functions | |
void | connectAll () |
Private Attributes | |
size_t | numClients_ |
size_t | counter_ |
int | numLoops_ |
bool | zeroCopy_ |
size_t | bufferSize_ |
EventBase | evb_ |
std::vector< std::unique_ptr< ZeroCopyTestAsyncSocket > > | clients_ |
folly::AsyncServerSocket::UniquePtr | listenSock_ |
ZeroCopyTestServer | server_ |
Definition at line 251 of file ZeroCopy.h.
|
explicit |
Definition at line 22 of file ZeroCopy.cpp.
References folly::ZeroCopyTestServer::addCallbackToServerSocket(), bufferSize_, clients_, counter_, evb_, i, listenSock_, numClients_, numLoops_, and server_.
|
inlineprivate |
Definition at line 261 of file ZeroCopy.h.
References addr.
Referenced by run().
bool folly::ZeroCopyTest::run | ( | ) |
Definition at line 45 of file ZeroCopy.cpp.
References clients_, connectAll(), evb_, listenSock_, folly::EventBase::loopForever(), folly::EventBase::runInEventBaseThread(), and zeroCopy_.
Referenced by TEST(), zeroCopyOff(), and zeroCopyOn().
|
private |
Definition at line 272 of file ZeroCopy.h.
Referenced by ZeroCopyTest().
|
private |
Definition at line 275 of file ZeroCopy.h.
Referenced by run(), and ZeroCopyTest().
|
private |
Definition at line 269 of file ZeroCopy.h.
Referenced by ZeroCopyTest().
|
private |
Definition at line 274 of file ZeroCopy.h.
Referenced by run(), and ZeroCopyTest().
|
private |
Definition at line 276 of file ZeroCopy.h.
Referenced by run(), and ZeroCopyTest().
|
private |
Definition at line 268 of file ZeroCopy.h.
Referenced by ZeroCopyTest().
|
private |
Definition at line 270 of file ZeroCopy.h.
Referenced by ZeroCopyTest().
|
private |
Definition at line 277 of file ZeroCopy.h.
Referenced by ZeroCopyTest().
|
private |
Definition at line 271 of file ZeroCopy.h.
Referenced by run().