13 #ifndef __NET_INFOCALLBACK_H__
14 #define __NET_INFOCALLBACK_H__
29 virtual void onConnectionStart() = 0;
30 virtual void onConnectionStop() = 0;
31 virtual void onRequest() = 0;
32 virtual void onStartReading() = 0;
33 virtual void onReadBytes(std::size_t
bytes) = 0;
34 virtual void onEndReading() = 0;
35 virtual void onStartWriting() = 0;
36 virtual void onEndWriting() = 0;
58 myStatsMgr(stats_mgr),
62 myActiveConnection(false)
75 unsigned myReading : 1;
76 unsigned myWriting : 1;
77 unsigned myWaiting : 1;
78 unsigned myActiveConnection : 1;
85 : myStatsManager(stats_mgr)
95 #endif // __NET_INFOCALLBACK_H__
virtual void onConnectionStop()=0
virtual void onEndReading()=0
virtual void onConnectionStart()=0
virtual void onReadBytes(std::size_t bytes)=0
NET_StatsInfoCallback(NET_WebStatsManager &stats_mgr)
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
virtual void onEndWriting()=0
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
Simple holder for statistics relating to the web server.
virtual void onStartReading()=0
virtual void onRequest()=0
virtual UT_UniquePtr< NET_InfoCallback > create()=0
NET_WebStatsManager & myStatsMgr
NET_StatsInfoCallbackFactory(NET_WebStatsManager &stats_mgr)
virtual void onStartWriting()=0