proxygen
|
Public Member Functions | |
void | destroy () override |
WriteResult | performWrite () override |
bool | isComplete () override |
void | consume () override |
Public Member Functions inherited from folly::AsyncSocket::WriteRequest | |
WriteRequest (AsyncSocket *socket, WriteCallback *callback) | |
virtual void | start () |
WriteRequest * | getNext () const |
WriteCallback * | getCallback () const |
uint32_t | getTotalBytesWritten () const |
void | append (WriteRequest *next) |
void | fail (const char *fn, const AsyncSocketException &ex) |
void | bytesWritten (size_t count) |
Static Public Member Functions | |
static BytesWriteRequest * | newRequest (AsyncSocket *socket, WriteCallback *callback, const iovec *ops, uint32_t opCount, uint32_t partialWritten, uint32_t bytesWritten, unique_ptr< IOBuf > &&ioBuf, WriteFlags flags) |
Private Member Functions | |
BytesWriteRequest (AsyncSocket *socket, WriteCallback *callback, const struct iovec *ops, uint32_t opCount, uint32_t partialBytes, uint32_t bytesWritten, unique_ptr< IOBuf > &&ioBuf, WriteFlags flags) | |
~BytesWriteRequest () override=default | |
const struct iovec * | getOps () const |
uint32_t | getOpCount () const |
Private Attributes | |
uint32_t | opCount_ |
number of entries in writeOps_ More... | |
uint32_t | opIndex_ |
current index into writeOps_ More... | |
WriteFlags | flags_ |
set for WriteFlags More... | |
unique_ptr< IOBuf > | ioBuf_ |
underlying IOBuf, or nullptr if N/A More... | |
uint32_t | opsWritten_ |
complete ops written More... | |
uint32_t | partialBytes_ |
partial bytes of incomplete op written More... | |
ssize_t | bytesWritten_ |
bytes written altogether More... | |
struct iovec | writeOps_ [] |
write operation(s) list More... | |
Additional Inherited Members | |
Protected Member Functions inherited from folly::AsyncSocket::WriteRequest | |
virtual | ~WriteRequest () |
Protected Attributes inherited from folly::AsyncSocket::WriteRequest | |
AsyncSocket * | socket_ |
parent socket More... | |
WriteRequest * | next_ {nullptr} |
pointer to next WriteRequest More... | |
WriteCallback * | callback_ |
completion callback More... | |
uint32_t | totalBytesWritten_ {0} |
total bytes written More... | |
Definition at line 81 of file AsyncSocket.cpp.
|
inlineprivate |
Definition at line 179 of file AsyncSocket.cpp.
References opCount_, writeOps_, and ~BytesWriteRequest().
Referenced by newRequest().
|
overrideprivatedefault |
Referenced by BytesWriteRequest(), and destroy().
|
inlineoverridevirtual |
Implements folly::AsyncSocket::WriteRequest.
Definition at line 151 of file AsyncSocket.cpp.
References bytesWritten_, flags_, i, ioBuf_, folly::AsyncSocket::isZeroCopyRequest(), opCount_, opIndex_, opsWritten_, partialBytes_, folly::AsyncSocket::WriteRequest::socket_, folly::AsyncSocket::WriteRequest::totalBytesWritten_, uint32_t, uint8_t, and writeOps_.
|
inlineoverridevirtual |
Implements folly::AsyncSocket::WriteRequest.
Definition at line 112 of file AsyncSocket.cpp.
References bm::free(), and ~BytesWriteRequest().
|
inlineprivate |
Definition at line 207 of file AsyncSocket.cpp.
References opCount_, and opIndex_.
Referenced by isComplete(), and performWrite().
|
inlineprivate |
Definition at line 202 of file AsyncSocket.cpp.
References opCount_, opIndex_, and writeOps_.
Referenced by performWrite().
|
inlineoverridevirtual |
Implements folly::AsyncSocket::WriteRequest.
Definition at line 147 of file AsyncSocket.cpp.
References getOpCount(), and opsWritten_.
Referenced by performWrite().
|
inlinestatic |
Definition at line 83 of file AsyncSocket.cpp.
References BytesWriteRequest(), and folly::gen::move.
Referenced by folly::AsyncSocket::writeImpl().
|
inlineoverridevirtual |
Implements folly::AsyncSocket::WriteRequest.
Definition at line 117 of file AsyncSocket.cpp.
References folly::AsyncSocket::addZeroCopyBuf(), folly::AsyncSocket::adjustZeroCopyFlags(), bytesWritten_, folly::AsyncSocket::containsZeroCopyBuf(), folly::CORK, flags_, folly::AsyncSocket::WriteRequest::getNext(), getOpCount(), getOps(), folly::AsyncSocket::getZeroCopy(), ioBuf_, isComplete(), folly::AsyncSocket::isZeroCopyRequest(), folly::gen::move, opsWritten_, partialBytes_, folly::AsyncSocket::performWrite(), folly::AsyncSocket::setZeroCopyBuf(), and folly::AsyncSocket::WriteRequest::socket_.
|
private |
bytes written altogether
Definition at line 220 of file AsyncSocket.cpp.
Referenced by consume(), and performWrite().
|
private |
set for WriteFlags
Definition at line 214 of file AsyncSocket.cpp.
Referenced by consume(), and performWrite().
|
private |
underlying IOBuf, or nullptr if N/A
Definition at line 215 of file AsyncSocket.cpp.
Referenced by consume(), and performWrite().
|
private |
number of entries in writeOps_
Definition at line 212 of file AsyncSocket.cpp.
Referenced by BytesWriteRequest(), consume(), getOpCount(), and getOps().
|
private |
current index into writeOps_
Definition at line 213 of file AsyncSocket.cpp.
Referenced by consume(), getOpCount(), and getOps().
|
private |
complete ops written
Definition at line 218 of file AsyncSocket.cpp.
Referenced by consume(), isComplete(), and performWrite().
|
private |
partial bytes of incomplete op written
Definition at line 219 of file AsyncSocket.cpp.
Referenced by consume(), and performWrite().
|
private |
write operation(s) list
Definition at line 222 of file AsyncSocket.cpp.
Referenced by BytesWriteRequest(), consume(), and getOps().