proxygen
|
#include <AsyncUDPServerSocket.h>
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 |
Definition at line 41 of file AsyncUDPServerSocket.h.
|
virtualdefault |
Referenced by onListenResumed().
|
pure virtualnoexcept |
Invoked when a new packet is received
Implemented in wangle::Acceptor, and wangle::ServerAcceptor< Pipeline >.
Referenced by onListenResumed().
|
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.
|
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().
|
pure virtualnoexcept |
Invoked when we start reading data from socket. It is invoked in each acceptors/listeners event base thread.
Implemented in wangle::Acceptor.
|
pure virtualnoexcept |
Invoked when the server socket is closed. It is invoked in each acceptors/listeners event base thread.
Implemented in wangle::Acceptor.