proxygen
folly::AsyncSocket::WriteResult Struct Reference

#include <AsyncSocket.h>

Public Member Functions

 WriteResult (ssize_t ret)
 
 WriteResult (ssize_t ret, std::unique_ptr< const AsyncSocketException > e)
 

Public Attributes

ssize_t writeReturn
 
std::unique_ptr< const AsyncSocketExceptionexception
 

Detailed Description

writeReturn is the total number of bytes written, or WRITE_ERROR on error. If no data has been written, 0 is returned. exception is a more specific exception that cause a write error. Not all writes have exceptions associated with them thus writeReturn should be checked to determine whether the operation resulted in an error.

Definition at line 857 of file AsyncSocket.h.

Constructor & Destructor Documentation

folly::AsyncSocket::WriteResult::WriteResult ( ssize_t  ret)
inlineexplicit

Definition at line 858 of file AsyncSocket.h.

858 : writeReturn(ret) {}
folly::AsyncSocket::WriteResult::WriteResult ( ssize_t  ret,
std::unique_ptr< const AsyncSocketException e 
)
inline

Definition at line 860 of file AsyncSocket.h.

861  : writeReturn(ret), exception(std::move(e)) {}
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
std::unique_ptr< const AsyncSocketException > exception
Definition: AsyncSocket.h:864

Member Data Documentation

std::unique_ptr<const AsyncSocketException> folly::AsyncSocket::WriteResult::exception

Definition at line 864 of file AsyncSocket.h.

ssize_t folly::AsyncSocket::WriteResult::writeReturn

Definition at line 863 of file AsyncSocket.h.


The documentation for this struct was generated from the following file: