SaltAPI  1.1
An API for the HTTPd / Zia by Salty Studio.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
INetwork.hpp
Go to the documentation of this file.
1 //
2 // Created by wery_a on 07/01/17.
3 //
4 
5 #ifndef API_V2_INETWORK_HPP
6 #define API_V2_INETWORK_HPP
7 
8 namespace HTTP {
9  class Request;
10 
11  class Response;
12 
13  class ProcessingList;
14 }
15 
16 namespace Module {
20  class INetwork {
21  public:
29  virtual bool Start(HTTP::Request *req, HTTP::Response *res, HTTP::ProcessingList *pl) = 0;
30 
35  virtual bool OnRequest() = 0;
36 
44  virtual bool Send(HTTP::Request *req, HTTP::Response *res, HTTP::ProcessingList *pl) = 0;
45  };
46 }
47 
48 #endif //API_V2_INETWORK_HPP
virtual bool Start(HTTP::Request *req, HTTP::Response *res, HTTP::ProcessingList *pl)=0
virtual bool OnRequest()=0
this function is called when a request is received
virtual bool Send(HTTP::Request *req, HTTP::Response *res, HTTP::ProcessingList *pl)=0