Webserv
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
Env Class Reference

#include <Env.hpp>

Public Member Functions

 Env (JSONNode *conf)
 
 ~Env (void)
 Destructor.
 
void cycle (void)
 A Wevserv cycle:
 
void pre_select (void)
 Append each master_sockets and their clients to list of fds SELECT must look at.
 
void post_select (void)
 Refresh all master_sockets and their clients datas (disconnect, new connection, etc..) and parse requests recieved.
 

Data Fields

std::vector< Server * > _servers
 
std::vector< Master * > _masters
 
vec_string _allowed_methods
 

Detailed Description

Definition at line 4 of file Env.hpp.

Constructor & Destructor Documentation

◆ Env()

Env::Env ( JSONNode conf)

Definition at line 10 of file Env.cpp.

Here is the call graph for this function:

◆ ~Env()

Env::~Env ( void  )

Destructor.

The destructor call all servers and sockets destructors.

Definition at line 40 of file Env.cpp.

Member Function Documentation

◆ cycle()

void Env::cycle ( void  )

A Wevserv cycle:

  • append sockets to listen to select list
  • select ehem
  • refresh and handle requests

Definition at line 55 of file Env.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ post_select()

void Env::post_select ( void  )

Refresh all master_sockets and their clients datas (disconnect, new connection, etc..) and parse requests recieved.

Definition at line 77 of file Env.cpp.

Here is the caller graph for this function:

◆ pre_select()

void Env::pre_select ( void  )

Append each master_sockets and their clients to list of fds SELECT must look at.

Definition at line 67 of file Env.cpp.

Here is the caller graph for this function:

Field Documentation

◆ _allowed_methods

vec_string Env::_allowed_methods

Definition at line 8 of file Env.hpp.

◆ _masters

std::vector<Master *> Env::_masters

Definition at line 7 of file Env.hpp.

◆ _servers

std::vector<Server *> Env::_servers

Definition at line 6 of file Env.hpp.


The documentation for this class was generated from the following files: