proxygen
folly::AsyncUDPServerSocket::Callback Class Referenceabstract

#include <AsyncUDPServerSocket.h>

Inheritance diagram for folly::AsyncUDPServerSocket::Callback:
wangle::Acceptor proxygen::HTTPAcceptor TestAcceptor TestAcceptor wangle::ServerAcceptor< Pipeline > wangle::TestableAcceptor proxygen::HTTPSessionAcceptor HTTPTargetSessionAcceptor proxygen::HTTPServerAcceptor

Public Member Functions

virtual void onListenStarted () noexcept=0
 
virtual void onListenStopped () noexcept=0
 
virtual void onListenPaused () noexcept
 
virtual void onListenResumed () noexcept
 
virtual void onDataAvailable (std::shared_ptr< AsyncUDPSocket > socket, const folly::SocketAddress &addr, std::unique_ptr< folly::IOBuf > buf, bool truncated) noexcept=0
 
virtual ~Callback ()=default
 

Detailed Description

Definition at line 41 of file AsyncUDPServerSocket.h.

Constructor & Destructor Documentation

virtual folly::AsyncUDPServerSocket::Callback::~Callback ( )
virtualdefault

Referenced by onListenResumed().

Member Function Documentation

virtual void folly::AsyncUDPServerSocket::Callback::onDataAvailable ( std::shared_ptr< AsyncUDPSocket socket,
const folly::SocketAddress addr,
std::unique_ptr< folly::IOBuf buf,
bool  truncated 
)
pure virtualnoexcept

Invoked when a new packet is received

Implemented in wangle::Acceptor, and wangle::ServerAcceptor< Pipeline >.

Referenced by onListenResumed().

virtual void folly::AsyncUDPServerSocket::Callback::onListenPaused ( )
inlinevirtualnoexcept

Invoked when the server socket is paused. It is invoked in each acceptors/listeners event base thread.

Definition at line 59 of file AsyncUDPServerSocket.h.

59 {}
virtual void folly::AsyncUDPServerSocket::Callback::onListenResumed ( )
inlinevirtualnoexcept

Invoked when the server socket is resumed. It is invoked in each acceptors/listeners event base thread.

Definition at line 65 of file AsyncUDPServerSocket.h.

References addr, onDataAvailable(), folly::netops::socket(), and ~Callback().

65 {}
virtual void folly::AsyncUDPServerSocket::Callback::onListenStarted ( )
pure virtualnoexcept

Invoked when we start reading data from socket. It is invoked in each acceptors/listeners event base thread.

Implemented in wangle::Acceptor.

virtual void folly::AsyncUDPServerSocket::Callback::onListenStopped ( )
pure virtualnoexcept

Invoked when the server socket is closed. It is invoked in each acceptors/listeners event base thread.

Implemented in wangle::Acceptor.


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