You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

111 lines
9.7 KiB

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.7"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Webserv: includes/Env.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">Webserv
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.7 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_09e761304027c904456130627fd4dcf5.html">includes</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">Env.hpp</div></div>
</div><!--header-->
<div class="contents">
<a href="Env_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#include &quot;<a class="code" href="webserv_8hpp.html">webserv.hpp</a>&quot;</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"><a class="line" href="classEnv.html"> 4</a></span><span class="keyword">class </span><a class="code hl_class" href="classEnv.html">Env</a> {</div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"><a class="line" href="classEnv.html#ae82dda3aafec12c1b84c55227d606304"> 6</a></span> std::vector&lt;Server *&gt; <a class="code hl_variable" href="classEnv.html#ae82dda3aafec12c1b84c55227d606304">_servers</a>;</div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"><a class="line" href="classEnv.html#ace7f8bc745cd6d7ef2f5c410cfc09f4f"> 7</a></span> std::vector&lt;Master *&gt; <a class="code hl_variable" href="classEnv.html#ace7f8bc745cd6d7ef2f5c410cfc09f4f">_masters</a>;</div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"><a class="line" href="classEnv.html#af554adf3353c753d3e3050fc04bd297f"> 8</a></span> <a class="code hl_typedef" href="webserv_8hpp.html#aba96a6988a5bc02b5c8b908af07d0bbb">vec_string</a> <a class="code hl_variable" href="classEnv.html#af554adf3353c753d3e3050fc04bd297f">_allowed_methods</a>;</div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> <a class="code hl_class" href="classEnv.html">Env</a>(<a class="code hl_class" href="classJSONNode.html">JSONNode</a> *conf);</div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> <a class="code hl_function" href="classEnv.html#aae7e70f6b1aa0ddc3e9b2766d1cbfb5e">~Env</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classEnv.html#a0c8b92f45308987231f9b0be8751d39f">cycle</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classEnv.html#af4399c7f3d136ce2164dacef42f5c258">pre_select</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classEnv.html#a830b6a19d0ab40a20a67155e8e4fb713">post_select</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span>};</div>
<div class="ttc" id="aclassEnv_html"><div class="ttname"><a href="classEnv.html">Env</a></div><div class="ttdef"><b>Definition:</b> <a href="Env_8hpp_source.html#l00004">Env.hpp:4</a></div></div>
<div class="ttc" id="aclassEnv_html_a0c8b92f45308987231f9b0be8751d39f"><div class="ttname"><a href="classEnv.html#a0c8b92f45308987231f9b0be8751d39f">Env::cycle</a></div><div class="ttdeci">void cycle(void)</div><div class="ttdoc">A Wevserv cycle:</div><div class="ttdef"><b>Definition:</b> <a href="Env_8cpp_source.html#l00055">Env.cpp:55</a></div></div>
<div class="ttc" id="aclassEnv_html_a830b6a19d0ab40a20a67155e8e4fb713"><div class="ttname"><a href="classEnv.html#a830b6a19d0ab40a20a67155e8e4fb713">Env::post_select</a></div><div class="ttdeci">void post_select(void)</div><div class="ttdoc">Refresh all master_sockets and their clients datas (disconnect, new connection, etc....</div><div class="ttdef"><b>Definition:</b> <a href="Env_8cpp_source.html#l00077">Env.cpp:77</a></div></div>
<div class="ttc" id="aclassEnv_html_aae7e70f6b1aa0ddc3e9b2766d1cbfb5e"><div class="ttname"><a href="classEnv.html#aae7e70f6b1aa0ddc3e9b2766d1cbfb5e">Env::~Env</a></div><div class="ttdeci">~Env(void)</div><div class="ttdoc">Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="Env_8cpp_source.html#l00040">Env.cpp:40</a></div></div>
<div class="ttc" id="aclassEnv_html_ace7f8bc745cd6d7ef2f5c410cfc09f4f"><div class="ttname"><a href="classEnv.html#ace7f8bc745cd6d7ef2f5c410cfc09f4f">Env::_masters</a></div><div class="ttdeci">std::vector&lt; Master * &gt; _masters</div><div class="ttdef"><b>Definition:</b> <a href="Env_8hpp_source.html#l00007">Env.hpp:7</a></div></div>
<div class="ttc" id="aclassEnv_html_ae82dda3aafec12c1b84c55227d606304"><div class="ttname"><a href="classEnv.html#ae82dda3aafec12c1b84c55227d606304">Env::_servers</a></div><div class="ttdeci">std::vector&lt; Server * &gt; _servers</div><div class="ttdef"><b>Definition:</b> <a href="Env_8hpp_source.html#l00006">Env.hpp:6</a></div></div>
<div class="ttc" id="aclassEnv_html_af4399c7f3d136ce2164dacef42f5c258"><div class="ttname"><a href="classEnv.html#af4399c7f3d136ce2164dacef42f5c258">Env::pre_select</a></div><div class="ttdeci">void pre_select(void)</div><div class="ttdoc">Append each master_sockets and their clients to list of fds SELECT must look at.</div><div class="ttdef"><b>Definition:</b> <a href="Env_8cpp_source.html#l00067">Env.cpp:67</a></div></div>
<div class="ttc" id="aclassEnv_html_af554adf3353c753d3e3050fc04bd297f"><div class="ttname"><a href="classEnv.html#af554adf3353c753d3e3050fc04bd297f">Env::_allowed_methods</a></div><div class="ttdeci">vec_string _allowed_methods</div><div class="ttdef"><b>Definition:</b> <a href="Env_8hpp_source.html#l00008">Env.hpp:8</a></div></div>
<div class="ttc" id="aclassJSONNode_html"><div class="ttname"><a href="classJSONNode.html">JSONNode</a></div><div class="ttdef"><b>Definition:</b> <a href="Nodes_8hpp_source.html#l00004">Nodes.hpp:4</a></div></div>
<div class="ttc" id="awebserv_8hpp_html"><div class="ttname"><a href="webserv_8hpp.html">webserv.hpp</a></div></div>
<div class="ttc" id="awebserv_8hpp_html_aba96a6988a5bc02b5c8b908af07d0bbb"><div class="ttname"><a href="webserv_8hpp.html#aba96a6988a5bc02b5c8b908af07d0bbb">vec_string</a></div><div class="ttdeci">std::vector&lt; string &gt; vec_string</div><div class="ttdef"><b>Definition:</b> <a href="webserv_8hpp_source.html#l00050">webserv.hpp:50</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.7
</small></address>
</body>
</html>