proxygen
|
Private Member Functions | |
void | writeSuccess () noexceptoverride |
void | writeErr (size_t, const folly::AsyncSocketException &ex) noexceptoverride |
Private Member Functions inherited from folly::AsyncWriter::WriteCallback | |
virtual | ~WriteCallback ()=default |
Private Attributes | |
folly::Promise< folly::Unit > | promise_ |
Friends | |
class | AsyncSocketHandler |
Definition at line 191 of file AsyncSocketHandler.h.
|
inlineoverrideprivatevirtualnoexcept |
writeError() will be invoked if an error occurs writing the data.
bytesWritten | The number of bytes that were successfull |
ex | An exception describing the error that occurred. |
Implements folly::AsyncWriter::WriteCallback.
Definition at line 197 of file AsyncSocketHandler.h.
References promise_, and folly::Promise< T >::setException().
|
inlineoverrideprivatevirtualnoexcept |
writeSuccess() will be invoked when all of the data has been successfully written.
Note that this mainly signals that the buffer containing the data to write is no longer needed and may be freed or re-used. It does not guarantee that the data has been fully transmitted to the remote endpoint. For example, on socket-based transports, writeSuccess() only indicates that the data has been given to the kernel for eventual transmission.
Implements folly::AsyncWriter::WriteCallback.
Definition at line 192 of file AsyncSocketHandler.h.
References promise_, and folly::Promise< T >::setValue().
|
friend |
Definition at line 205 of file AsyncSocketHandler.h.
|
private |
Definition at line 206 of file AsyncSocketHandler.h.
Referenced by writeErr(), and writeSuccess().