proxygen
folly::AsyncUDPSocket::ErrMessageCallback Class Referenceabstract

#include <AsyncUDPSocket.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

Definition at line 79 of file AsyncUDPSocket.h.

Constructor & Destructor Documentation

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

Member Function Documentation

virtual void folly::AsyncUDPSocket::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::AsyncUDPSocket::handleErrMessages().

virtual void folly::AsyncUDPSocket::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::AsyncUDPSocket::failErrMessageRead().


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