proxygen
folly::AsyncSocket::ErrMessageCallback Class Referenceabstract

#include <AsyncSocket.h>

Public Member Functions

virtual ~ErrMessageCallback ()=default
 
virtual void errMessage (const cmsghdr &cmsg) noexcept=0
 
virtual void errMessageError (const AsyncSocketException &ex) noexcept=0
 

Detailed Description

This interface is implemented only for platforms supporting per-socket error queues.

Definition at line 120 of file AsyncSocket.h.

Constructor & Destructor Documentation

virtual folly::AsyncSocket::ErrMessageCallback::~ErrMessageCallback ( )
virtualdefault

Member Function Documentation

virtual void folly::AsyncSocket::ErrMessageCallback::errMessage ( const cmsghdr &  cmsg)
pure virtualnoexcept

errMessage() will be invoked when kernel puts a message to the error queue associated with the socket.

Parameters
cmsgReference to cmsghdr structure describing a message read from error queue associated with the socket.

Referenced by folly::AsyncSocket::handleErrMessages().

virtual void folly::AsyncSocket::ErrMessageCallback::errMessageError ( const AsyncSocketException ex)
pure virtualnoexcept

errMessageError() will be invoked if an error occurs reading a message from the socket error stream.

Parameters
exAn exception describing the error that occurred.

Referenced by folly::AsyncSocket::failErrMessageRead(), and folly::AsyncSocket::invalidState().


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