ZFFramework
 
Loading...
Searching...
No Matches
ZFProtocolZFHttpServer.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFProtocolZFHttpServer_h_
7#define _ZFI_ZFProtocolZFHttpServer_h_
8
9#include "ZFCore/ZFProtocol.h"
10#include "ZFNet/ZFHttpServer.h"
12
13// ============================================================
18public:
22 virtual void *start(ZF_IN ZFHttpServer *owner) zfpurevirtual;
26 virtual void stop(ZF_IN ZFHttpServer *owner, ZF_IN void *token) zfpurevirtual;
27
28public:
34 ZF_IN ZFHttpServer *owner
36 ) {
37 owner->_ZFP_ZFHttpServer_onRequest(task);
38 }
40
42#endif // #ifndef _ZFI_ZFProtocolZFHttpServer_h_
43
#define zffinal
dummy macro shows that a method or class is designed must not to be overrided
Definition ZFCoreTypeDef_ClassType.h:63
#define zfpurevirtual
dummy macro shows that a method is pure virtual method
Definition ZFCoreTypeDef_ClassType.h:68
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:180
http server
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
#define ZFLIB_ZFNet
used to export symbols
Definition ZFNetDef.h:15
protocol definitions for ZFFramework
#define ZFPROTOCOL_INTERFACE_END(ModuleName)
for more information, please refer to ZFPROTOCOL_INTERFACE_BEGIN
Definition ZFProtocol.h:414
#define ZFPROTOCOL_INTERFACE_BEGIN(ZFLIB_, ModuleName)
declare a protocol interface for ZFFramework
Definition ZFProtocol.h:408
http server util
Definition ZFHttpServer.h:126
see ZFHttpServer
Definition ZFHttpServer.h:13
virtual void stop(ZFHttpServer *owner, void *token)=0
stop the server
virtual void * start(ZFHttpServer *owner)=0
start the server
void notifyOnRequest(ZFHttpServer *owner, ZFHttpServerTask *task)
implementation must notify when receive client request, in thread of #ZFHttpServer::threadPool
Definition ZFProtocolZFHttpServer.h:33