|
API New Year
1.0
API for the project ZIA, EPITECH 2017.
|
Base class allowing the execution of connection modules in IServer. More...
#include <IConnection.h>

Public Member Functions | |
| virtual const std::string & | getName (void) const =0 |
| Getter for corresponding modules name. More... | |
| virtual int | getPriority (void) const =0 |
| Getter for corresponding modules priority. More... | |
| virtual int | update (SOCKET socket, IHttpClient *client)=0 |
| Executes the function passed to the interfaces constructor. More... | |
Base class allowing the execution of connection modules in IServer.
Establishes the base architecture to allow connection modules to be executed by defining how they are executed by the IServer, and what information the IServer has for each connection module.
|
pure virtual |
Getter for corresponding modules name.
IConnection get name of creating module.
|
pure virtual |
Getter for corresponding modules priority.
IConnection get the priority of the creating module.
|
pure virtual |
Executes the function passed to the interfaces constructor.
IConnection executes the modules main function through a function pointer.
| socket | server's listening socket. |
| client | pointer to the clients information (to be filled!). |