各ピンへのread/writeを提供するサーバサンプル

Dependencies:   NySNICInterface mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers RequestHandler.h Source File

RequestHandler.h

00001 #ifndef REQUEST_HANDLER
00002 #define REQUEST_HANDLER
00003 
00004 #include "RPCObject.h"
00005 
00006 
00007 
00008 class RequestHandler
00009 {
00010     public :
00011         
00012         virtual int handle(RPCObject& cmd, char* reply) = 0;
00013         
00014     protected :
00015 };
00016 
00017 class GetRequestHandler : public RequestHandler
00018 {
00019     public :
00020     
00021         virtual int handle(RPCObject& cmd, char* reply);
00022         
00023 };
00024 
00025 class PostRequestHandler : public RequestHandler
00026 {
00027     public :
00028         
00029         virtual int handle(RPCObject& cmd, char* reply);
00030 
00031 };
00032 
00033 
00034 class DeleteRequestHandler : public RequestHandler
00035 {
00036     public :
00037             
00038         virtual int handle(RPCObject& cmd, char* reply);
00039 
00040 };
00041 
00042 
00043 
00044 #endif
00045