1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-10-05 19:18:01 +08:00
ULib/include/ulib/net/server/plugin/mod_tsa.h
2015-07-31 18:32:33 +02:00

63 lines
1.2 KiB
C++

// ============================================================================
//
// = LIBRARY
// ULib - c++ library
//
// = FILENAME
// mod_tsa.h
//
// = AUTHOR
// Stefano Casazza
//
// ============================================================================
#ifndef U_MOD_TSA_H
#define U_MOD_TSA_H 1
#include <ulib/net/server/server_plugin.h>
class UCommand;
class U_EXPORT UTsaPlugIn : public UServerPlugIn {
public:
// Check for memory error
U_MEMORY_TEST
// COSTRUTTORI
UTsaPlugIn();
virtual ~UTsaPlugIn();
// define method VIRTUAL of class UServerPlugIn
// Server-wide hooks
virtual int handlerConfig(UFileConfig& cfg) U_DECL_FINAL;
virtual int handlerInit() U_DECL_FINAL;
// Connection-wide hooks
virtual int handlerRequest() U_DECL_FINAL;
// DEBUG
#if defined(U_STDCPP_ENABLE) && defined(DEBUG)
const char* dump(bool reset) const;
#endif
protected:
static UCommand* command;
private:
#ifdef U_COMPILER_DELETE_MEMBERS
UTsaPlugIn(const UTsaPlugIn&) = delete;
UTsaPlugIn& operator=(const UTsaPlugIn&) = delete;
#else
UTsaPlugIn(const UTsaPlugIn&) : UServerPlugIn() {}
UTsaPlugIn& operator=(const UTsaPlugIn&) { return *this; }
#endif
};
#endif