-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKqueueUdata.hpp
40 lines (34 loc) · 962 Bytes
/
KqueueUdata.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#pragma once
#include "./Request/Request.hpp"
#include "./Response/Response.hpp"
#include "Structure.hpp"
class KqueueUdata
{
private :
int _m_requested_fd; //using at cgi
int _m_state;
Request _m_req;
Response _m_res;
FILE* _m_inFile;
FILE* _m_outFile;
struct server_config_struct _m_server;
public :
KqueueUdata();
~KqueueUdata(){}
public :
void clean();
/* getter & setter */
int getState();
FILE* getinFile();
FILE* getoutFile();
int getRequestedFd();
Request& getRequest();
Response& getResponse();
void setState(int state);
void setRequestedFd(int);
void setRequest(Request req);
void setResponse(Response res);
void setinFile(FILE *);
void setoutFile(FILE *);
void setServer(struct server_config_struct&);
};