statisticshandler.h
/*
Copyright (c) 2006-2023 by Jakob Schröter <js@camaya.net>
This file is part of the gloox library. http://camaya.net/gloox
This software is distributed under a license. The full license
agreement can be found in the file LICENSE in this distribution.
This software may not be copied, modified, sold or distributed
other than expressed in the named license agreement.
This software is distributed without any warranty.
*/
#ifndef STATISTICSHANDLER_H__
#define STATISTICSHANDLER_H__
#include "stanza.h"
namespace gloox
{
struct StatisticsStruct
{
long int totalBytesSent;
long int totalBytesReceived;
long int compressedBytesSent;
long int compressedBytesReceived;
long int uncompressedBytesSent;
long int uncompressedBytesReceived;
long int totalStanzasSent;
long int totalStanzasReceived;
long int iqStanzasSent;
long int iqStanzasReceived;
long int messageStanzasSent;
long int messageStanzasReceived;
long int s10nStanzasSent;
long int s10nStanzasReceived;
long int presenceStanzasSent;
long int presenceStanzasReceived;
bool encryption;
bool compression;
};
class GLOOX_API StatisticsHandler
{
public:
virtual ~StatisticsHandler() {}
virtual void handleStatistics( const StatisticsStruct stats ) = 0;
};
}
#endif // STATISTICSHANDLER_H__
gloox::StatisticsHandler
A virtual interface which can be reimplemented to receive connection statistics.
Definition statisticshandler.h:64
gloox::StatisticsHandler::handleStatistics
virtual void handleStatistics(const StatisticsStruct stats)=0
gloox::StatisticsHandler::~StatisticsHandler
virtual ~StatisticsHandler()
Definition statisticshandler.h:69
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28
gloox::StatisticsStruct
Definition statisticshandler.h:26
gloox::StatisticsStruct::compressedBytesSent
long int compressedBytesSent
Definition statisticshandler.h:33
gloox::StatisticsStruct::totalStanzasSent
long int totalStanzasSent
Definition statisticshandler.h:41
gloox::StatisticsStruct::messageStanzasSent
long int messageStanzasSent
Definition statisticshandler.h:45
gloox::StatisticsStruct::compression
bool compression
Definition statisticshandler.h:52
gloox::StatisticsStruct::messageStanzasReceived
long int messageStanzasReceived
Definition statisticshandler.h:46
gloox::StatisticsStruct::s10nStanzasSent
long int s10nStanzasSent
Definition statisticshandler.h:47
gloox::StatisticsStruct::iqStanzasReceived
long int iqStanzasReceived
Definition statisticshandler.h:44
gloox::StatisticsStruct::totalStanzasReceived
long int totalStanzasReceived
Definition statisticshandler.h:42
gloox::StatisticsStruct::uncompressedBytesSent
long int uncompressedBytesSent
Definition statisticshandler.h:37
gloox::StatisticsStruct::iqStanzasSent
long int iqStanzasSent
Definition statisticshandler.h:43
gloox::StatisticsStruct::totalBytesSent
long int totalBytesSent
Definition statisticshandler.h:27
gloox::StatisticsStruct::totalBytesReceived
long int totalBytesReceived
Definition statisticshandler.h:30
gloox::StatisticsStruct::uncompressedBytesReceived
long int uncompressedBytesReceived
Definition statisticshandler.h:39
gloox::StatisticsStruct::presenceStanzasReceived
long int presenceStanzasReceived
Definition statisticshandler.h:50
gloox::StatisticsStruct::s10nStanzasReceived
long int s10nStanzasReceived
Definition statisticshandler.h:48
gloox::StatisticsStruct::presenceStanzasSent
long int presenceStanzasSent
Definition statisticshandler.h:49
gloox::StatisticsStruct::compressedBytesReceived
long int compressedBytesReceived
Definition statisticshandler.h:35
gloox::StatisticsStruct::encryption
bool encryption
Definition statisticshandler.h:51