proxygen
|
#include <AsyncSocket.h>
Public Member Functions | |
WriteRequest (AsyncSocket *socket, WriteCallback *callback) | |
virtual void | start () |
virtual void | destroy ()=0 |
virtual WriteResult | performWrite ()=0 |
virtual void | consume ()=0 |
virtual bool | isComplete ()=0 |
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) |
Protected Member Functions | |
virtual | ~WriteRequest () |
Protected Attributes | |
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... | |
A WriteRequest object tracks information about a pending write operation.
Definition at line 888 of file AsyncSocket.h.
|
inline |
Definition at line 890 of file AsyncSocket.h.
|
inlineprotectedvirtual |
Definition at line 931 of file AsyncSocket.h.
|
inline |
Definition at line 915 of file AsyncSocket.h.
References cpp.ast::next().
Referenced by folly::AsyncSocket::writeImpl(), and folly::AsyncSocket::writeRequest().
|
inline |
Definition at line 924 of file AsyncSocket.h.
References count, socket_, and uint32_t.
|
pure virtual |
Implemented in folly::AsyncSocket::BytesWriteRequest.
Referenced by folly::AsyncSocket::handleWrite(), and folly::AsyncSocket::writeImpl().
|
pure virtual |
Implemented in folly::AsyncSocket::BytesWriteRequest.
Referenced by folly::AsyncSocket::failAllWrites(), folly::AsyncSocket::failWrite(), and folly::AsyncSocket::handleWrite().
|
inline |
Definition at line 920 of file AsyncSocket.h.
References socket_.
Referenced by gtest_xml_test_utils.GTestXMLTestCase::_GetChildren(), and fatal_test.FatalTests::is_debug_build().
|
inline |
Definition at line 907 of file AsyncSocket.h.
References callback_.
Referenced by folly::AsyncSocket::failAllWrites(), folly::AsyncSocket::failWrite(), and folly::AsyncSocket::handleWrite().
|
inline |
Definition at line 903 of file AsyncSocket.h.
Referenced by folly::AsyncSocket::failAllWrites(), folly::AsyncSocket::failWrite(), folly::AsyncSocket::handleWrite(), and folly::AsyncSocket::BytesWriteRequest::performWrite().
|
inline |
Definition at line 911 of file AsyncSocket.h.
Referenced by folly::AsyncSocket::failAllWrites(), and folly::AsyncSocket::failWrite().
|
pure virtual |
Implemented in folly::AsyncSocket::BytesWriteRequest.
Referenced by folly::AsyncSocket::handleWrite().
|
pure virtual |
Implemented in folly::AsyncSocket::BytesWriteRequest.
Referenced by folly::AsyncSocket::handleWrite().
|
inlinevirtual |
Definition at line 893 of file AsyncSocket.h.
References folly::AsyncSocket::destroy(), and folly::AsyncSocket::performWrite().
Referenced by folly::AsyncSocket::writeRequest().
|
protected |
completion callback
Definition at line 935 of file AsyncSocket.h.
|
protected |
pointer to next WriteRequest
Definition at line 934 of file AsyncSocket.h.
|
protected |
parent socket
Definition at line 933 of file AsyncSocket.h.
Referenced by folly::AsyncSocket::BytesWriteRequest::consume(), and folly::AsyncSocket::BytesWriteRequest::performWrite().
|
protected |
total bytes written
Definition at line 936 of file AsyncSocket.h.
Referenced by folly::AsyncSocket::BytesWriteRequest::consume().