Webserv
Loading...
Searching...
No Matches
Env.hpp
Go to the documentation of this file.
1#pragma once
2#include "webserv.hpp"
3
4class Env {
5public:
6 std::vector<Server *> _servers;
7 std::vector<Master *> _masters;
9
10 Env(JSONNode *conf);
11 ~Env(void);
12 void cycle(void);
13 void pre_select(void);
14 void post_select(void);
15};
Definition: Env.hpp:4
void cycle(void)
A Wevserv cycle:
Definition: Env.cpp:55
void post_select(void)
Refresh all master_sockets and their clients datas (disconnect, new connection, etc....
Definition: Env.cpp:77
~Env(void)
Destructor.
Definition: Env.cpp:40
std::vector< Master * > _masters
Definition: Env.hpp:7
std::vector< Server * > _servers
Definition: Env.hpp:6
void pre_select(void)
Append each master_sockets and their clients to list of fds SELECT must look at.
Definition: Env.cpp:67
vec_string _allowed_methods
Definition: Env.hpp:8
std::vector< string > vec_string
Definition: webserv.hpp:50