warsvrprotocolhttplite.h

来自「ftpserver very good sample」· C头文件 代码 · 共 116 行

H
116
字号
/** */#ifndef WAR_SVR_PROTOCOL_HTTP_LITE_H#define WAR_SVR_PROTOCOL_HTTP_LITE_H/* SYSTEM INCLUDES */#ifndef WAR_INCLUDED_TCHAR_H#   define WAR_INCLUDED_TCHAR_H#   include <tchar.h>#endif/* PROJECT INCLUDES */#ifndef WAR_SVR_PROTOCOL_HTTP_H#   include "WarSvrProtocolHttp.h"#endif#ifndef WAR_SVR_DEFINITION_HTTP_H#   include "WarSvrDefinitionHttp.h"#endif#ifndef WAR_WIN32_REGISTRY_H#   include "WarWin32Registry.h"#endif#ifndef WAR_SVR_PROTOCOL_HTTP_REPLY_H#	include "WarSvrProtocolHttpReply.h"#endif/* LOCAL INCLUDES */#ifndef WAR_HTTPD_LITE_H#   include "WarftpdLite.h"#endif/* FORWARD REFERENCES */#ifdef __cplusplusextern "C" {#endif/****************** BEGIN OLD STYLE C spesific ********//****************** END OLD STYLE C spesific **********/#ifdef __cplusplus }#endif/****************** BEGIN C++ spesific ****************/#ifdef __cplusplusclass WarSvrProtocolHttpLite : public WarSvrProtocolHttp{public:    // LIFECYCLE        /**    * Default constructor.    */    WarSvrProtocolHttpLite(        war_socket_io_ptr_t& companionPtr,        WarSvrDefinition& svrDefinion)		: WarSvrProtocolHttp(companionPtr, svrDefinion)	{	}        // OPERATIONS                           // ACCESS    // INQUIRY    protected:private:};class WarSvrDefinitionHttpLite : public WarSvrDefinitionHttp{public:    WarSvrDefinitionHttpLite()        throw(WarException)    {}    war_registrypath_t mRegistryPath;protected:     virtual WarSvrProtocol *GetNewSvr(         war_socket_io_ptr_t& companionPtr)        throw(WarException)     {         return new WarSvrProtocolHttpLite(             companionPtr, *this);     }};typedef WarPtrWrapper<WarSvrDefinitionHttpLite> war_svr_definition_http_lite_ptr_t;/* INLINE METHODS *//* EXTERNAL REFERENCES */#endif /* __cplusplus *//****************** END C++ spesific ******************/#endif  /* WAR_SVR_PROTOCOL_HTTP_LITE_H_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?