mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-08 22:28:08 -05:00
26 lines
396 B
C
26 lines
396 B
C
|
#ifndef STATSHANDLER_H
|
||
|
#define STATSHANDLER_H
|
||
|
|
||
|
/*
|
||
|
* simple class to output some basic stats about RS
|
||
|
* like bandwidth, connected peers, ...
|
||
|
*/
|
||
|
|
||
|
#include "ResourceRouter.h"
|
||
|
|
||
|
namespace resource_api
|
||
|
{
|
||
|
|
||
|
class StatsHandler : public ResourceRouter
|
||
|
{
|
||
|
public:
|
||
|
StatsHandler();
|
||
|
|
||
|
private:
|
||
|
void handleStatsRequest(Request& req, Response& resp);
|
||
|
};
|
||
|
|
||
|
} // namespace resource_api
|
||
|
|
||
|
#endif // STATSHANDLER_H
|