proxygen
folly::AsyncSocket::ReadResult Struct Reference

#include <AsyncSocket.h>

Public Member Functions

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

Public Attributes

ssize_t readReturn
 
std::unique_ptr< const AsyncSocketExceptionexception
 

Detailed Description

readReturn is the number of bytes read, or READ_EOF on EOF, or READ_ERROR on error, or READ_BLOCKING if the operation will block. exception is a more specific exception that may have caused a read error. Not all read errors have exceptions associated with them thus readReturn should be checked to determine whether the operation resulted in an error.

Definition at line 875 of file AsyncSocket.h.

Constructor & Destructor Documentation

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

Definition at line 876 of file AsyncSocket.h.

876 : readReturn(ret) {}
folly::AsyncSocket::ReadResult::ReadResult ( ssize_t  ret,
std::unique_ptr< const AsyncSocketException e 
)
inline

Definition at line 878 of file AsyncSocket.h.

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

Member Data Documentation

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

Definition at line 882 of file AsyncSocket.h.

ssize_t folly::AsyncSocket::ReadResult::readReturn

Definition at line 881 of file AsyncSocket.h.


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