Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
app::DisconnectHook Class Reference

A function object to be called when a connection is disconnected. More...

#include <WebHandlers.hpp>

Public Member Functions

 DisconnectHook (web::dosguard::DOSGuardInterface &dosguard)
 Construct a new DisconnectHook object.
 
void operator() (web::ng::Connection const &connection)
 The call of the function object.
 

Detailed Description

A function object to be called when a connection is disconnected.

Constructor & Destructor Documentation

◆ DisconnectHook()

app::DisconnectHook::DisconnectHook ( web::dosguard::DOSGuardInterface & dosguard)

Construct a new DisconnectHook object.

Parameters
dosguardThe DOSGuardInterface to use for disconnecting the connection.

Member Function Documentation

◆ operator()()

void app::DisconnectHook::operator() ( web::ng::Connection const & connection)

The call of the function object.

Parameters
connectionThe connection which has disconnected.

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